vite-plugin-wasm-pack icon indicating copy to clipboard operation
vite-plugin-wasm-pack copied to clipboard

svelte: copy crates failed

Open veritem opened this issue 2 years ago • 2 comments

plugin fails with svelte image

veritem avatar Mar 03 '22 19:03 veritem

I know this is a dumb suggestion, but in my case there was a stray symlink with the same name as my crate in node_modules. After I deleted it, the copy succeeded. Any chance that's causing your problem too?

mtoohey31 avatar May 06 '22 01:05 mtoohey31

I know this is a dumb suggestion, but in my case there was a stray symlink with the same name as my crate in node_modules. After I deleted it, the copy succeeded. Any chance that's causing your problem too?

This was my issue today too. To paraphrase,I renamed my-crate (same name with actual crate name) in devDependencies section of my package.json file to my-crate-alt. Then run npm install and npm run build. And the issue disappear.

Mattchine avatar Sep 17 '22 15:09 Mattchine