-
Notifications
You must be signed in to change notification settings - Fork 131
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
Error: Dynamic require of "fs" is not supported #885
Comments
@sigma-andex any idea about this? |
@ad-si can you push the branch where you have the changes? |
@sigma-andex Should already have been pusht to master! 🤔 |
@ad-si I finally found some time to look into this. I think the issue is that your import { main } from "./output/Main/index.js"
main() and when you run it it works fine. This is because I think this is not really an issue with spago but more with |
Hi I already commented in the discourse-thread and I hope you don't mind me repeating it here. For me it seems as if spago is asking
when I do a bundle and I guess it gets confused here - if I don't include the |
@ad-si could you try bundling this with |
I'll close this as I think this is now solved, but let's reopen it if it turns out it's not |
Yes, works! Thanks for your efforts! 😊 |
When I build https://github.com/feramhq/transity with following command:
And try to execute it like
node index.js
, I get following error:How can this be fixed? Do I need to configure esbuild somehow?
The text was updated successfully, but these errors were encountered: