one icon indicating copy to clipboard operation
one copied to clipboard

Error running the app by following the installation guide with the default configuration

Open TiagoPortfolio opened this issue 1 year ago • 7 comments

I've followed the installation page and I have ran the following commands:

  1. bunx one
  2. 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

TiagoPortfolio avatar Jan 12 '25 23:01 TiagoPortfolio

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?

natew avatar Jan 13 '25 21:01 natew

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.

natew avatar Jan 13 '25 21:01 natew

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.

Thanks, I will give that a try

TiagoPortfolio avatar Jan 13 '25 21:01 TiagoPortfolio

@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. image

According to bun docs, bun uses copyfile by default in MacOS: https://bun.sh/docs/install/cache#saving-disk-space

TiagoPortfolio avatar Jan 13 '25 23:01 TiagoPortfolio

I will shift to Expo meanwhile

TiagoPortfolio avatar Jan 18 '25 17:01 TiagoPortfolio

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.

jonathanj avatar Apr 08 '25 05:04 jonathanj

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

troZee avatar Apr 18 '25 02:04 troZee

I can't reproduce this using the latest, tested on yarn and bun. Lmk though maybe missed something.

natew avatar Aug 14 '25 19:08 natew