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
Server only dependencies breaking ui build #107
Comments
@ericp96 was this issue solved? |
Nope, not yet. I'll try to take a deeper dive sometime soon, however between other higher priorities such as a new baby, I haven't had the time to look at it. Any inspiration would be appreciated. I think it might have something to do with the webpack configuration needing to be different for the server so this exception is not thrown, but I'm not certain how. |
Which OS and Node versions are you using? Cause the error seems to be from node-pre-gyp which may be causing the issue. PS: Congrats on the baby. Happy for you. |
Thanks, Tirth! I'm not entirely certain what is going on here, it's definitely a build thing. I'm putting the application inside a node 10 docker image. My guess is that webpack-dev-server is trying to do a client build and can't because it's trying to do something with grpc which is a Node.js thing and not a client side thing. As a result I think it's generating the exception mentioned. I'm guessing node-gyp is a dependency of the node.js grpc library and whatever it's invoking is an invalid API call on the client. |
Same issue trying to add internal api's using mongoose, webpack breaks the serverside code |
@santalucial Can you please share a demo repo or error code logs? |
@tirthbodawala i've tried to replicate on a different pc but it seems it can compile successfully, gonna report back next week when i get my hands back on the pc where the issue arose |
@tirthbodawala it appears my issue was unrelated, due to the "test" script not working(it doesn't work even without the package i added) and complaining about the dotenv package and suggesting to install another one that eventually breaks the build completely
|
I have some dependencies that only work in node, as a result it seems to break the ui webpack build? I'm not quite sure how to repair:
Thoughts?
The text was updated successfully, but these errors were encountered: