You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importtype{Configuration}from'webpack';constPRISMA_CLIENT_GENERATED_DEPENDENCIES=['encoding','_http_common'];exportdefaultfunctionwebpackConfig(webpackConfig: Configuration,options: unknown){if(Array.isArray(webpackConfig.externals)){webpackConfig.externals.push((context,callback)=>{if(context.request&&PRISMA_CLIENT_GENERATED_DEPENDENCIES.includes(context.request)){// not bundledreturncallback(undefined,`commonjs ${context.request}`);}// bundledcallback();});}returnwebpackConfig;}
Failure Logs
Not works
Environment
Node : 17.0.1
OS : linux x64
npm : 6.14.10
nx : Not Found
@nrwl/angular : Not Found
@nrwl/cli : 13.1.4
@nrwl/cypress : 13.1.4
@nrwl/devkit : 13.1.4
@nrwl/eslint-plugin-nx : 13.1.4
@nrwl/express : Not Found
@nrwl/jest : 13.1.4
@nrwl/linter : 13.1.4
@nrwl/nest : 13.1.4
@nrwl/next : Not Found
@nrwl/node : 13.1.4
@nrwl/nx-cloud : Not Found
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 13.1.4
@nrwl/web : 13.1.4
@nrwl/workspace : 13.1.4
@nrwl/storybook : Not Found
@nrwl/gatsby : Not Found
typescript : 4.4.4
Done in 0.35s.
The text was updated successfully, but these errors were encountered:
This issue has been fixed for
web
builder: #7454Current Behavior
Cannot use import statement outside a module
Expected Behavior
I can use typescript files.
Steps to Reproduce
Same as #7454
Using this
webpack.config.ts
Failure Logs
Not works
Environment
The text was updated successfully, but these errors were encountered: