-
Notifications
You must be signed in to change notification settings - Fork 147
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
Missing Modules #192
Comments
Hi @hollandThomas, Could you maybe share your webpack config or even the whole project? We will try to reproduce then. |
Hi @lutovich, sharing the whole project would be difficult but here are the important bits: webpack config, nothing fancy:
project dependencies:
Usually we would use the driver on our graphql backend but for early testing purposes we run some test code featuring the driver that looks something like this (I tried to reduce it to the bare minimum):
Let me know if you need more information. Thank you. |
I did some digging and ended up in these issues: request/request#1529 and socketio/socket.io-client#933 I have a feeling that these might be related in some way. I tried some of the presented solutions. These got rid of the errors but left me with a blank page when accessing localhost. Maybe this will help someone more technically apt than me to find the solution to this specific problem. Specifically, the webpack docs write about both setting a target environment and including polyfills for various node stuff. I will add that it is entirely possible that I am missing out on some critical fundamentals regarding any of the involved technologies since I am rather new to all of them. It would however be tragic if this is what keeps us from using neo4j. It seems to fit our use case perfectly. |
Alright nevermind ... the devil's in the details and sometimes it's the easy things.
instead of
does the trick. I'd like github to have a 🤦 smiley. |
Hi, I seem to be knocking my head against this issue as well, although I did change it to
I'm using Visual Studio 2017 ASP.NET Core to create an Angular 2 application and assumed using the Neo4J Javascript driver was necessary, but I can't make it work. It's either giving me 'implicity any' errors, 'module declaration not found' or this 'module not found' error. counter.component.ts: import { Component } from "@angular/core";
} Any help appreciated! Kind Regards |
Hi @Ynoaparast, Could you please try solution mentioned here #152 (comment)? |
Hi @lutovich It worked like charm. However, I still get the errors when I try to mange the Angular 2 App through Visual Studio 2017. Looks like I'll just do it like this for now. |
and the driver! |
For anyone who tries to use neo4j-driver with typescript on frontend
neo4j-driver.d.ts /**
* Hack to reuse neo4j-driver types for neo4j-web
*/
declare module 'neo4j-driver/lib/browser/neo4j-web' {
import a = require('neo4j-driver');
export = a;
}
import { v1 as neo4j } from "neo4j-driver/lib/browser/neo4j-web"; |
Hey,
when I'm trying to bundle my package with webpack it says:
This makes using the driver impossible and shuts down my whole application. I did try to install each of the listed modules manually. This resolved everything except for the 'fs' module error. Also I feel that this shouldn't be necessary. Any hints? Thank you!
The text was updated successfully, but these errors were encountered: