question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unspecified dependencies in package.json

See original GitHub issue

While switching from yarn to npm due to performance issues with Docker I ran into some dependency problems:

Module not found: Error: Can't resolve 'react-fast-compare' in '/home/node/admin/node_modules/@camberi/firecms/dist'
Module not found: Error: Can't resolve '@uiw/react-markdown-preview' in '/home/node/admin/node_modules/@camberi/firecms/dist'
Module not found: Error: Can't resolve '@firebase/auth' in '/home/node/admin/node_modules/@camberi/firecms/dist'
Module not found: Error: Can't resolve '@mui/base' in '/home/node/admin/node_modules/@camberi/firecms/dist'

It seems that those packages are not installed but imported/used by firecms. For example here or here. Does anyone know why this problem appeared while switching from yarn to npm? And why are the dependencies are not specified in the package.json file in the first place?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mkuecommented, Sep 2, 2022

Thanks for looking into this so quickly🙏 Everything works now as expected for me.

Feel free to close this.

0reactions
fgatti675commented, Sep 2, 2022

Hi guys, we have made a bunch of dependency fixes in the latest 2.0.0-alpha.28 version. I have done some testing and it seems to work fine with npm and yarn 3. Let me know if you are still facing issues, also keep in mind you should now remove @mui/styles from your dependencies

Read more comments on GitHub >

github_iconTop Results From Across the Web

'lerna add' creates dependency on '^undefined' tag if package ...
Start w/a simple lerna repro · Remove "version" filed from one package's package.json · Add a new dependency via 'npx lerna add foo...
Read more >
depcheck - npm
The dependency underscore is declared in the package.json file, but not used by any code. The devDependency jasmine is declared in the package....
Read more >
Local dependency in package.json - Stack Overflow
The downside of installing local packages with "npm link" is that you get a lot of module duplication. When you list your dependencies...
Read more >
Are you sure what packages you're using are in package.json?
Phantom dependencies are packages that are not defined in package.json. using-undefined-package. Let's see the example, there is one dependency ...
Read more >
Cannot install dependencies in package.json Heroku & Github ...
My log for deployment: -----> Node.js app detected -----> Creating runtime environment NPM_CONFIG_LOGLEVEL=error NODE_ENV=debug…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found