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
The const withNx = require('@nrwl/next/plugins/with-nx') import in next.config.js file of next.js app, force me to install @nrwl/next modules with all its dependencies also in production.
Nx should not force me to install all its dev dependencies only to support the build of Next.js
NOTE:
Since next.config.js is copied as is in production by design, Nx should not add its stuff to avoiding to pollute the node_modules
GitHub Repo
No response
Steps to Reproduce
nx build <next-app-name>
install only production dependencies
run the app in production fail because withNx deps is missing
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Current Behavior
The
const withNx = require('@nrwl/next/plugins/with-nx')
import innext.config.js
file of next.js app, force me to install@nrwl/next
modules with all its dependencies also in production.Run
If I remove it this happen:
#15794
Expected Behavior
Nx should not force me to install all its dev dependencies only to support the build of Next.js
NOTE:
Since
next.config.js
is copied as is in production by design, Nx should not add its stuff to avoiding to pollute the node_modulesGitHub Repo
No response
Steps to Reproduce
nx build <next-app-name>
install only production dependencies
Nx Report
Failure Logs
Additional Information
No response
The text was updated successfully, but these errors were encountered: