Has anyone seen an issue with prisma client when u...
# orm-help
r
Has anyone seen an issue with prisma client when using webpack to build? I am getting this error:
Can't resolve '_http_common' in 'C:\Users\ricky\projects\spectr\server\node_modules\@prisma\client\runtime'
I can get around this by setting
externals: ["_http_common"],
in my webpack.config, but when I go to run my build with
node build/index.js
I get
ReferenceError: _http_common is not defined
Anyone seen anything like this. Google is not too helpful
r
@Ricky Hopkins 👋 Here’s a similar issue, could you try the workarounds specified and see if it works?
r
Thanks @Ryan I got around it by using
webpack-node-externals
which seemed to do the trick
💯 1