Parcel with Rust fails to write to cache if paths have spaces
Closed this issue ยท 1 comments
iamcodemaker commented
๐ bug report
When building a rust project, if there are spaces in the path parcel fails with the following error where the path was /path/with spaces in it/
. Note: this is not a fatal error, it just logs to the console. Everything else still seems to work.
Previous discussion here: parcel-bundler/parcel#2521
โจ Built in 1.72s.
๐จ Error writing to cache: ENOENT: no such file or directory, stat '/path/with\'
๐ฆ Context
To reproduce:
- get the rust parcel template
- place it in a path with spaces in it
- run
npm run start
ornpm run build
๐ค Expected Behavior
Parcel should properly build a bundle.
๐ฏ Current Behavior
Parcel complains about writing to the cache with the error above.
๐ Possible Solution
Properly handle paths with spaces (and special characters) in them.
๐ Your Environment
Software | Version(s) |
---|---|
Parcel | 1.11.0 |
Node | 8.14.0 |
npm | 6.5.0 |
Operating System | macOS 10.13.6 |
catsigma commented
Sorry for the late fix. Version 1.2.10 solve this issue.