-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package that uses buffer as dependency fails #49
Comments
Hey! 👋 It looks like you're trying to import an npm module without a build-step. Workers only natively support modules that are located in your upload directory, not node_modules. Check out https://miniflare.dev/recipes/esbuild.html for an example of using |
Hey @mrbbot thanks for the quick answer I am using the rollup configuration from cloudflare typescript template here : https://github.com/cloudflare/durable-objects-typescript-rollup-esm I guess the rollup config is missing some option ? I ll investigate more and might as well switch to esbuild that I am using for my frontend through vite anyway. |
close? |
Hey! 👋 It looks like you're trying to import an npm module without a build-step. Workers only natively support modules that are located in your upload directory, not node_modules. Check out https://miniflare.dev/recipes/esbuild.html for an example of using esbuild to bundle your code first. Let me know if you have any issues with this. |
Error
The text was updated successfully, but these errors were encountered: