Open roninjin10 opened 9 months ago
Hi, is there any update on this? I'm running into the same issue.
With same example I am seeing this issue:
$ bun build --compile index.ts
6 | import devtools from 'react-devtools-core';
^
error: Could not resolve: "react-devtools-core". Maybe you need to "bun install"?
at /Users/gtrabanco/MyProjects/bun-5657/node_modules/ink/build/devtools.js:6:22
Bun revision: 1.1.5-canary.1+b257a3097
I'm seeing that error as well, but it goes away if you bun add react-devtools-core --dev
.
Anyone find any workarounds for this? This is still an issue on 1.1.10
.
I'm running 1.1.15
and the issue stills there.
Cannot find module "./yoga.wasm" from "/$bunfs/root/sample-ink"
1.1.17
The same captures this issue
same
my workaround
cp ./node_modules/yoga-wasm-web/dist/yoga.wasm ./dist/yoga.wasm
What version of Bun is running?
1.0.6+969da088f5db3258a803ec186012e30f992829b4
What platform is your computer?
macos Darwin 22.6.0 arm64 arm
What steps can reproduce the bug?
Install a node module like
ink
that has wasm in itAdd it to an index.ts
It will fail
What is the expected behavior?
Should work
What do you see instead?
➜ minimal-bun-repro bun start $ bun build ./index.ts --compile --outfile mycli && ./mycli [29ms] bundle 112 modules [88ms] compile mycli
error: Cannot find module "./yoga.wasm" from "compi
Additional information
Minimal repro here git@github.com:roninjin10/minimal-bun-repro.git