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

npm packages missing from clean install #76

Open
adrianeguez opened this issue Mar 16, 2024 · 2 comments
Open

npm packages missing from clean install #76

adrianeguez opened this issue Mar 16, 2024 · 2 comments

Comments

@adrianeguez
Copy link

Problem

After a clean install the terminal displays the following errors:

Error: Cannot find package 'accept-language-parser' imported from /home/dev-adrian/Documents/Mlabs/Gitea/mlabs-facturacion-electronica/apps/storefront-remix-starter/build/index.js
Did you mean to import [email protected]/node_modules/accept-language-parser/index.js?
    at new NodeError (node:internal/errors:405:5)
    at packageResolve (node:internal/modules/esm/resolve:916:9)
    at moduleResolve (node:internal/modules/esm/resolve:973:20)
    at defaultResolve (node:internal/modules/esm/resolve:1193:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:403:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:372:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39)
    at link (node:internal/modules/esm/module_job:75:36)

> storefront-remix@ dev /home/dev-adrian/Documents/Mlabs/Gitea/mlabs-facturacion-electronica/apps/storefront-remix-starter
> remix dev


 💿  remix dev

⚠️ Route ID Collision: "routes/account"

The following routes all define the same Route ID, only the first one will be used

🟢 routes/account/index.tsx
⭕️️ routes/account.tsx

⚠️ Route ID Collision: "routes/checkout"

The following routes all define the same Route ID, only the first one will be used

🟢 routes/checkout/index.tsx
⭕️️ routes/checkout.tsx

 info  building...
 info  built (3.5s)
Error: Cannot find package 'intl-parse-accept-language' imported from /home/dev-adrian/Documents/Mlabs/Gitea/mlabs-facturacion-electronica/apps/storefront-remix-starter/build/index.js
Did you mean to import [email protected]/node_modules/intl-parse-accept-language/dist/index.js?
    at new NodeError (node:internal/errors:405:5)
    at packageResolve (node:internal/modules/esm/resolve:916:9)
    at moduleResolve (node:internal/modules/esm/resolve:973:20)
    at defaultResolve (node:internal/modules/esm/resolve:1193:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:403:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:372:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39)
    at link (node:internal/modules/esm/module_job:75:36)

Possible solution

add to package.json:

accept-language-parser
intl-parse-accept-language
@oidt
Copy link

oidt commented Mar 18, 2024

did you run yarn install ?

@onursonmez
Copy link

It happened to me when I installed it with pnpm. I deleted the node_modules folder and installed it with yarn, no problem :)

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

3 participants