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

Software erosion 😭 Error: "provide the URL of lib/mappings.wasm..." #832

Open
bartvanderwal opened this issue Nov 13, 2024 · 1 comment

Comments

@bartvanderwal
Copy link

bartvanderwal commented Nov 13, 2024

Ouch. Award winning lbrary, but software... erosion 😭.

It's 2024, ChatGPT suggested I use mdx-deck for a 'slides as code' presentation I want to embed later into a Docusaurus website.

Just like the user in issue #818 😄, I followed the getting started. I'm using node v23.1.0 with npm v10.9.0.
But I get below errors. I see someone got it working with node v16.14.2. It would be nice if the README.md specified a node version to get this working. Or include a Dockerfile to build?

I get this error:

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

And I also get warnings:

info Deleting .cache, public, /Users/bartvanderwal/Library/CloudStorage/OneDrive-HAN/CNP/PWA
C/workshop-integratie/node_modules/mdx-deck/node_modules/.cache/babel-loader,
/Users/bartvanderwal/Library/CloudStorage/OneDrive-HAN/CNP/PWAC/workshop-integratie/node_mod
ules/mdx-deck/node_modules/.cache/terser-webpack-plugin

 ERROR 

(node:45325) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a
 userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
@bartvanderwal bartvanderwal changed the title Software erosion error "You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize" Software erosion error "provide the URL of lib/mappings.wasm..." Nov 13, 2024
@bartvanderwal bartvanderwal changed the title Software erosion error "provide the URL of lib/mappings.wasm..." Software erosion 😭 Error: "provide the URL of lib/mappings.wasm..." Nov 13, 2024
@Makman2
Copy link

Makman2 commented Dec 2, 2024

Got the same. Switched node versions via nvm use 16 to Node 16 and then it works. But it would be nice if newer Node versions were supported.

I'll look if I can allocate spare time on this... but this could take a while.

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

No branches or pull requests

2 participants