-
Notifications
You must be signed in to change notification settings - Fork 151
v1 driver cannot resolve internal modules #396
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
Comments
Ahh this is not meant to run in the browser (see for more details facebook/create-react-app#3543) |
Hi @Ethan-Arrowood, It is possible to use this driver in both browser and NodeJS environments. Modules like Maybe this error has something to do with how modules are resolved by infrastructure created by create-react-app. I'll reopen this issue to investigate. Please feel free to update this issue if you have more details or steps to reproduce to share. |
Newbie here -- I'm just going to share my experience since a google search on
|
I also faced the problem using create-react-app and neo4j-driver@1.6.2. For me using |
Hi Guys, Other newbie here. I have the same problem when testing in StackBlitz. Thanks! Sorry found it I should use: |
Using |
Dear All, Module resolution errors seem to be caused by runtime feature detection in the driver. It contains Node and browser environment specific components in one codebase which confuses bundlers. They can't determine that Node components are unused and obviously fail at compile time when trying to resolve required Node APIs. Probably the best workaround right now is to include Mentioned PR should fix the problem and make it possible to use driver with a simple |
Hello, Pre-release 1.7.0-beta02 version of the driver with the fix is now released. It can be installed using |
Yep, now it works! |
Uh oh!
There was an error while loading. Please reload this page.
Installed most recent stable version of neo4j-driver today and when I try to launch my app I get the following error message:
Module not found: Can't resolve 'dns' in '/app/node_modules/neo4j-driver/lib/v1/internal'
(due note I'm using create-react-app and running the commandnpm run start
)I'll look into this issue and see if its just a bad publish or something else. Other recommendations would be helpful though.
The text was updated successfully, but these errors were encountered: