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

vite node vue3 http://127.0.0.1:4001/node_modules/.vite/deps/cardano_multiplatform_lib_bg.wasm 404 (Not Found) #243

Open
zjavax opened this issue Feb 26, 2024 · 1 comment

Comments

@zjavax
Copy link

zjavax commented Feb 26, 2024

"lucid-cardano": "^0.10.7"

node_modules/lucid-cardano/esm/src/core/libs/cardano_message_signing/cardano_message_signing_bg.wasm
node_modules/lucid-cardano/esm/src/core/libs/cardano_multiplatform_lib/cardano_multiplatform_lib_bg.wasm

You need to manually copy the above two files to the following folder
, which can temporarily solve this problem, but you must copy it every time

node_modules.vite\deps

@cauu
Copy link

cauu commented Jun 5, 2024

It's because lucid are using fetch instead of dynamic import to install those two modules.
What I've done is forking a lucid and replace default link of those two files with a CDN version.

I would recommend that lucid can give us an option to decide whether use local or remote ones, so we can easily use it in vite project.
@alessandrokonrad

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