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

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

Open
TiagoPortfolio opened this issue Jan 12, 2025 · 5 comments

Comments

@TiagoPortfolio
Copy link

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 TiagoPortfolio changed the title Error running app with default config Error running the app by following the installation guide with the default configuration Jan 13, 2025
@natew
Copy link
Collaborator

natew commented Jan 13, 2025

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
Copy link
Collaborator

natew commented Jan 13, 2025

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.

@TiagoPortfolio
Copy link
Author

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
Copy link
Author

TiagoPortfolio commented Jan 13, 2025

@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
Copy link
Author

I will shift to Expo meanwhile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants