-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Bundling fails on 2.21.0 #6564
Comments
Can you share an example script on how to reproduce this? |
I have a similar issue with @m-abdelwahab Im using |
A repro we could clone and try out ourselves would be greatly appreciated! |
Next steps:
|
@matthewmueller is a private project but I can refer to the core issue, |
Lol sorry, I left the
|
I thought this had solved it for me as well, but one of the modules in my monorepo is actually instantiating a |
@larrybek , I have the same issue. New to webpack though. can you advise how you ignore the package? Thanks James |
@JamesForan I have been using |
We are waiting for |
@millsp Any recommendations of a workaround in the meantime that does not include simply cutting out the dependency? |
How should i be dealing with my webpack.config? (using serverless + prisma)
|
Hey @softmarshmallow Use the following webpack config which this is being fixed: module.exports = {
webpack: (config, {isServer}) => {
if (isServer) {
config.externals.push('_http_common'); }
return config;
},
target: 'serverless',
}; Above config is for next js but you can also transfer this to your custom config. |
^
|
@mubaidr It is for next js. Ignore it if you are not using next js. |
In your |
@trivigy no other workaround for now, sorry about that. What is your setup? |
@millsp I run prisma on electron. The suggest workaround seems to work. Thanks. I just upgraded to |
|
Workaround for today
Permanent Fix for Prisma
|
With webpack 5, simply adding {
// ...
externals: {
"_http_common": "commonjs2 _http_common",
}
} |
thank you...I was really struggling with this issue while using turbo repos with next js..but this resolved it..after adding it to the |
Hey everyone, this has been fixed in |
I can confirm that |
Bug description
After upgrading to
2.21.0
and running ESBuild to bundle, a new error occurs:and
How to reproduce
prisma generate
esbuild app.js --bundle --platform=node --target=node14
Expected behavior
Prior to
2.21.0
bundling was successful.Prisma information
ESBuild config
Environment & setup
The text was updated successfully, but these errors were encountered: