Error running the app by following the installation guide with the default configuration
I've followed the installation page and I have ran the following commands:
-
bunx one -
bun install && bun dev
But I've go this error:
[20:18:10] ERROR ENOENT: no such file or directory, open 'MY_DIRECTORY/node_modules/@vxrn/resolve/dist/esm/react/package.json'
error: script "dev" exited with code 1
It seems like a critical issue as I cannot start the app by following the installation guide with the default configuration.
Here is the full output:
[0.33ms] ".env"
bun install v1.1.42 (50eec002)
Checked 1644 installs across 1603 packages (no changes) [363.00ms]
$ one dev
[vxrn] cleaning
Error applying patch to @react-native-masked-view/masked-view ./index.js: Error: Could not resolve "MY_DIRECTORY/node_modules/@vxrn/resolve/dist/esm/metro-react-native-babel-preset" in file MY_DIRECTORY.
Error applying patch to @react-native-masked-view/masked-view ./js/MaskedView.js: Error: Could not resolve "MY_DIRECTORY/node_modules/@vxrn/resolve/dist/esm/metro-react-native-babel-preset" in file MY_DIRECTORY.
Error applying patch to @react-native-masked-view/masked-view ./js/MaskedViewTypes.js: Error: Could not resolve "MY_DIRECTORY/node_modules/@vxrn/resolve/dist/esm/metro-react-native-babel-preset" in file MY_DIRECTORY.
Error applying patch to @react-native-masked-view/masked-view ./js/MaskedView.web.js: Error: Could not resolve "MY_DIRECTORY/node_modules/@vxrn/resolve/dist/esm/metro-react-native-babel-preset" in file MY_DIRECTORY.
Error applying patch to @react-native/assets-registry ./path-support.js: Error: Could not resolve "MY_DIRECTORY/node_modules/@vxrn/resolve/dist/esm/metro-react-native-babel-preset" in file MY_DIRECTORY.
Error applying patch to @react-native/assets-registry ./registry.js: Error: Could not resolve "MY_DIRECTORY/node_modules/@vxrn/resolve/dist/esm/metro-react-native-babel-preset" in file MY_DIRECTORY.
ENOENT: no such file or directory, open 'MY_DIRECTORY/node_modules/@vxrn/resolve/dist/esm/react/package.json'
[20:18:10] ERROR ENOENT: no such file or directory, open 'MY_DIRECTORY/node_modules/@vxrn/resolve/dist/esm/react/package.json'
[20:18:10] ERROR ENOENT: no such file or directory, open 'MY_DIRECTORY/node_modules/@vxrn/resolve/dist/esm/react/package.json'
error: script "dev" exited with code 1
Must have something to do with bun using copyfile by default, whats odd is the file is there according to my file system I can cat it out etc, but it seems node has trouble reading?
Interestingly this only happens if I'm in /tmp dir which is where I was testing. I tried in my home dir and it works actually no problem.
Make sure you install with copyfile or clonefile, not symlink.
Interestingly this only happens if I'm in
/tmpdir which is where I was testing. I tried in my home dir and it works actually no problem.Make sure you install with copyfile or clonefile, not symlink.
Thanks, I will give that a try
@natew
No luck, I have tried bun install --no-symlinks and pnpm install --shamefully-hoist.
I've also tried using yarn and npm but got the same error.
I checked my node_modules and there is no node_modules/@vxrn/resolve/dist/esm/react/package.json file in it.
According to bun docs, bun uses copyfile by default in MacOS: https://bun.sh/docs/install/cache#saving-disk-space
I will shift to Expo meanwhile
I have the same issue, except I'm using yarn.
$ ls -l node_modules/@vxrn/resolve/dist/esm
total 48
-rw-r--r--@ 1 jonathan staff 592B Apr 8 07:01 index.js
-rw-r--r--@ 1 jonathan staff 503B Apr 8 07:01 index.js.map
-rw-r--r--@ 1 jonathan staff 613B Apr 8 07:01 index.mjs
-rw-r--r--@ 1 jonathan staff 968B Apr 8 07:01 index.mjs.map
-rw-r--r--@ 1 jonathan staff 909B Apr 8 07:01 index.native.js
-rw-r--r--@ 1 jonathan staff 875B Apr 8 07:01 index.native.js.map
I chose the "Minimal" config option when using yarn dlx one.
I have the same issue. I have tried many things and combinations, and with the same results.
I also added this package bun install @vxrn/resolve@latest, but it did not work in my case.
The ls command returns the output as follows:
(base) ➜ esm git:(main) ✗ ls -l
total 48
-rw-r--r-- 1 trozee wheel 592 Apr 18 14:12 index.js
-rw-r--r-- 1 trozee wheel 503 Apr 18 14:12 index.js.map
-rw-r--r-- 1 trozee wheel 613 Apr 18 14:12 index.mjs
-rw-r--r-- 1 trozee wheel 968 Apr 18 14:12 index.mjs.map
-rw-r--r-- 1 trozee wheel 909 Apr 18 14:12 index.native.js
-rw-r--r-- 1 trozee wheel 875 Apr 18 14:12 index.native.js.map
I can't reproduce this using the latest, tested on yarn and bun. Lmk though maybe missed something.