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

Cannot find module '../node_modules/lodash/isArray.js' #68

Closed
David-Melo opened this issue Nov 14, 2018 · 5 comments · Fixed by #70
Closed

Cannot find module '../node_modules/lodash/isArray.js' #68

David-Melo opened this issue Nov 14, 2018 · 5 comments · Fixed by #70
Labels

Comments

@David-Melo
Copy link

Hello, I've been using this great library for a while now. I recently tried to fork an existing app and can't get it to work. I'm receiving the following error. Thanks for your work on this library and thanks for taking time to review my issue.

`internal/modules/cjs/loader.js:582
throw err;
^

Error: Cannot find module '../node_modules/lodash/isArray.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (C:_\myappname\node_modules\cypher-query-builder\dist\cjs5.js:7:32)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)`

@jamesfer
Copy link
Owner

Hmm. Are you bundling the code with webpack? or another similar tool?

@David-Melo
Copy link
Author

Hello, thanks for the speedy reply. Im using this on a simple express server and I'm pretty sure there's no webpack bundling or anything similar. Only way I was able to get it working was with downgrading to a previous version of this library (3.5.1).

Im not sure if some part of my setup is causing it to build incorrectly the relative path its looking for _.isArray is ../node_modules/ but from where it is located it should be at least one or two levels higher ../../. Im wondering if something in my setup is causing it to be confused at to the location? I'm not sure.

Like I said, I got it working with an older version since I was unable to progress any further.

I have attached a screenshot of the comparing the DIS folder between the latest version and the version i got working.

unnamed

@purplemana
Copy link
Contributor

Having the same issue in my setup. No bundlers here as well.

@jamesfer
Copy link
Owner

Hey guys, thanks for the reports. I've found the issue and there should be a fix out in a few hours.

jamesfer pushed a commit that referenced this issue Nov 15, 2018
## [3.8.5](v3.8.4...v3.8.5) (2018-11-15)

### Bug Fixes

* tell rollup to output external modules with node style paths ([248f039](248f039)), closes [#68](#68)

[skip ci]
@jamesfer
Copy link
Owner

🎉 This issue has been resolved in version 3.8.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

3 participants