parcel-plugin-wasm.rs
parcel-plugin-wasm.rs copied to clipboard
Paths with spaces are not cached correctly
This is similar to #15, but the incorrect path is different. I'm using WSL, so my code is at path /mnt/c/Users/My User/code/project/crate/src/lib.rs
. Note the space in My User
.
I get this error when running with all versions starting with 1.2.10:
❯ yarn start
yarn run v1.7.0
warning package.json: License should be a valid SPDX license expression
$ parcel index.html
Server running at http://localhost:1234
✨ Built in 3.00s.
🚨 Error writing to cache: ENOENT: no such file or directory, stat '/mnt/c/Users/MyUser/code/project/crate/src/lib.rs'
Note that the space in My User
was removed.
Did you import the lib by using import xxx from 'path/to/Cargo.toml'
or import xxx from 'path/to/lib.rs'
?
Oops, sorry. This is what I get for trying to manually edit the logs. I imported the lib with path/to/Cargo.toml
.