Skip to content
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

🐛 BUG: wrangler fails to resolve wasm module in npm monorepo #7129

Closed
nickbabcock opened this issue Oct 30, 2024 · 0 comments · Fixed by #7130
Closed

🐛 BUG: wrangler fails to resolve wasm module in npm monorepo #7129

nickbabcock opened this issue Oct 30, 2024 · 0 comments · Fixed by #7130
Labels
bug Something that isn't working

Comments

@nickbabcock
Copy link
Contributor

Which Cloudflare product(s) does this pertain to?

Wrangler

What version(s) of the tool(s) are you using?

3.83.0

What version of Node are you using?

18.20.2

What operating system and version are you using?

Ubuntu 24.04

Describe the Bug

Observed behavior

Wrangler is only be able to resolve modules in a relative node_modules directory and not the workspace root node_modules directory. And will otherwise throw the following errors:

ENOENT: no such file or directory, open
  <an absolute path from the local node_modules>
The plugin "wrangler-module-collector" was triggered by this import

Expected behavior

Wrangler resolution matches bundler resolution.

Steps to reproduce

git clone -b intent https://github.com/nickbabcock/cloud-functions
npm install
npm run --workspace src/highwayhasher build

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

@nickbabcock nickbabcock added the bug Something that isn't working label Oct 30, 2024
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Oct 30, 2024
@emily-shen emily-shen moved this from Untriaged to Backlog in workers-sdk Nov 29, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in workers-sdk Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant