-
Notifications
You must be signed in to change notification settings - Fork 16
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
Cannot resolve dependency './rust_parcel_bg.js' #45
Comments
Same. Just installed dependencies and tried to serve. |
Any suggestion how to work around? Looks like some paths are mixed up. Looks like wasm-tool/parcel-plugin-wasm.rs#30 |
@zoechi That actually is intentional; the plugin goes and registers what gets output to This error happens because I opened a PR with a fix here (the PR's message also has some more details about other possible solutions). It hasn't been merged yet but if you don't want to wait, changing your - "parcel-plugin-wasm.rs": "^1.2.15"
+ "parcel-plugin-wasm.rs": "rrbutani/parcel-plugin-wasm.rs" |
Hey! Seems like there is something more going wrong.
|
@Peder2911 Whoops, sorry about that! There was an extra commit on the Either switching to the |
Hmm, weird, hot-reload still doesn't work after two reloads. The page just doesn't update along with the code, even though it is refreshed. Error is gone though, thanks! |
Describe the Bug
Running the base template with the instructions in the readme, I get the following error:
<path>/<to>/rust-parcel-test/node_modules/parcel-plugin-wasm.rs/wasm-loader.js:2:14: Cannot resolve dependency './rust_parcel_bg.js' at '<path>/<to>/rust-parcel-test/node_modules/parcel-plugin-wasm.rs/rust_parcel_bg.js'
I've tried this with both NPM and Yarn.
Steps to Reproduce
npm init rust-parcel rust-parcel-test
cd rust-parcel-test
npm install
npm run start
Expected Behavior
The app should run.
Actual Behavior
The error occurs in the build.
Additional Context
MacOS 10.14.6
Node 13.12.0
The text was updated successfully, but these errors were encountered: