Replies: 1 comment
-
Not sure what the issue is, it would be good to have a reproducer for this. Wasm-bindgen needs to be of the same version as used in the web project. So installing one with cargo, without specifying that exact version of your web project won't help. Trunk will then try to install it's own version, which might not work in docker depending on some factors. I am not sure what it thinks it found a version, but then is not able to find it when executing it. There's also the Also, it might be useful (faster) to use My expectation would be that installing wasm-bindgen and trunk once should be enough. Unless there's something weird going on. Also, I would not recommend to use nightly, that's only a source of trouble. Unless you're really up for it. |
Beta Was this translation helpful? Give feedback.
-
My project has multiple sub projects inside of it. One of them, web, is built using trunk. The issue I'm having is that when I call trunk build inside the web project it creates files it is using on the root of the workspace under target. Unfortunately once I declare a WORKDIR for docker on the web project folder it is no longer able "to see" into its parent workspace's target folder.
Is there any way around this? Here's the error and some related items.
Error during Docker build
Dockerfile
Project Structure
Beta Was this translation helpful? Give feedback.
All reactions