Base64 import error

What is the name of the modal you’re running?

im trying to create a workers ai website

What is the issue or error you’re encountering

but this happens

What steps have you taken to resolve the issue?

✘ [ERROR] Build failed with 1 error: ✘ [ERROR] Could not resolve “base64-js” node_modules/@cloudflare/ai/dist/index.js:1:16: 1 │ importas e from"base64-js";importas t from"mustache";var s;!funct… ╵ ~~~~~~~~~~~ You can mark the path “base64-js” as external to exclude it from the bundle, which will remove this error.

What are the steps to reproduce the issue?

I have a d1 and a vectorize in use

I had the same error when creating workers ai. Solved it by installing: npm i base64-js

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.