Skip to content

Cannot resolve module deep-object-diff #37

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

Closed
stefanfrede opened this issue Jul 11, 2018 · 4 comments
Closed

Cannot resolve module deep-object-diff #37

stefanfrede opened this issue Jul 11, 2018 · 4 comments

Comments

@stefanfrede
Copy link

After installing I get the error Cannot resolve module 'deep-object-diff'.

I installed and implemented it the way you provided:

npm i --save deep-object-diff
import { updatedDiff } from 'deep-object-diff';
@mattphillips
Copy link
Owner

Hey @stefanfrede seems strange!

I've just tried it myself and all seems to be working OK, I'd say that it is probably something going wrong with your setup. Are you able to share a reproduction repo with the problem?

Have you tried deleting your project node_modules and doing a fresh install and then check the package is in your node_modules.

@stefanfrede
Copy link
Author

Hi!

I set up a test repo (https://github.com/stefanfrede/deep-object-diff-test-repo), and there it is working fine.

I tried again in my project, and I get Cannot resolve module deep-object-diff.: .

I then deleted node_modules and did a fresh install, and the package seems to be installed, but I get the same error.

I have no clue what is going wrong, but I guess there is some interference with another/other package/packages.

@stefanfrede
Copy link
Author

I found the culprit. It is flow. I removed /* @flow */ which stopped the type checking for the file and the error message disappeared.

@stefanfrede
Copy link
Author

I'm closing this because I solved it (somehow).

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