opened
ericp96
username_0
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:

```
app_1            | ℹ ｢pawjs｣: Compiled successfully.
app_1            | Error: package.json does not exist at /package.json
app_1            |     at Object.exports.find (webpack://dev-server/./node_modules/node-pre-gyp/lib/pre-binding.js?:26:11)
app_1            |     at Object.eval (webpack://dev-server/./node_modules/grpc/src/grpc_extension.js?:35:27)
app_1            |     at eval (webpack://dev-server/./node_modules/grpc/src/grpc_extension.js?:89:30)
app_1            |     at Object../node_modules/grpc/src/grpc_extension.js (<anonymous>:2187:1)
app_1            |     at __webpack_require__ (<anonymous>:30:30)
app_1            |     at Object.eval (webpack://dev-server/./node_modules/grpc/src/client_interceptors.js?:151:12)
app_1            |     at eval (webpack://dev-server/./node_modules/grpc/src/client_interceptors.js?:1596:30)
app_1            |     at Object../node_modules/grpc/src/client_interceptors.js (<anonymous>:2140:1)
app_1            |     at __webpack_require__ (<anonymous>:30:30)
app_1            |     at Object.eval (webpack://dev-server/./node_modules/grpc/src/client.js?:42:27)
app_1            | ⚠ ｢pawjs｣: Hash: f4756abd2aae95df45c2
```
Server only dependencies breaking ui build
issue
created
tirthbodawala
username_1
@username_0 was this issue solved?
comment
created
ericp96
username_0
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.
comment
created
tirthbodawala
username_1
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.
comment
created
ericp96
username_0
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.
comment
created
santalucial
username_2
Same issue trying to add internal api's using mongoose, webpack breaks the serverside code
comment
created
tirthbodawala
username_1
@username_2 Can you please share a demo repo or error code logs?
comment
created
santalucial
username_2
@username_1 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
comment
created
santalucial
username_2
comment
closed
tirthbodawala
username_1
issue