wasm-tool/parcel-plugin-wasm.rs

Parcel with Rust fails to write to cache if paths have spaces

Closed this issue ยท 1 comments

๐Ÿ› 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:

  1. get the rust parcel template
  2. place it in a path with spaces in it
  3. run npm run start or npm 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

Sorry for the late fix. Version 1.2.10 solve this issue.