Skip to content
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 in node 18 #623

Closed
geekact opened this issue May 6, 2022 · 6 comments
Closed

Error in node 18 #623

geekact opened this issue May 6, 2022 · 6 comments
Labels

Comments

@geekact
Copy link

geekact commented May 6, 2022

The error description:

Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer

How to reproduce?

Install node@18 and run npx tsup

Workaround

Downgrade to node@17

@egoist
Copy link
Owner

egoist commented May 6, 2022

Please provide the code you use tsup to bundle

@geekact
Copy link
Author

geekact commented May 6, 2022

https://github.com/foca-js/foca , you can try this repo.

@geekact
Copy link
Author

geekact commented May 6, 2022

More info:

  • tsup 5.12.6
  • macos 12.2.1
  • node 18.1.0
  • zsh

@geekact
Copy link
Author

geekact commented May 16, 2022

What's going on now? Error from tsup self or other dependencies?

@egoist
Copy link
Owner

egoist commented May 16, 2022

Caused by mozilla/source-map#454

@egoist egoist closed this as completed in c67e03d May 16, 2022
@github-actions
Copy link

🎉 This issue has been resolved in version 5.12.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants