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] Hydrogen development server fails when inside an NPM monorepo #2433

Open
nkgentile opened this issue Jan 13, 2023 · 0 comments
Open

[BUG] Hydrogen development server fails when inside an NPM monorepo #2433

nkgentile opened this issue Jan 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@nkgentile
Copy link

Describe the bug
A clear and concise description of what the bug is.

When using a Hydrogen application inside of an NPM monorepo with the structure:

.
├── apps
│   ├── hydrogen

the development server will fail to run and emit the following error:

Command failed with exit code 1: node -p require('./node_modules/@shopify/hydrogen/package.json').version
node:internal/modules/cjs/loader:1042
  throw err;
  ^
Error: Cannot find module './node_modules/@shopify/hydrogen/package.json'

To Reproduce

There are instructions and more information here:
https://github.com/nkgentile/reproduction-shopify-hydrogen-monorepo

Expected behaviour
A clear and concise description of what you expected to happen.

I'd expect the development server to run without an error.

Screenshots
If applicable, add screenshots to help explain your problem.

I've included a repository with steps to reproduce (and fix)

Additional context
Add any other context about the problem here. eg.

I've added this information to the repository linked above.

@nkgentile nkgentile added the bug Something isn't working label Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant