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
I think we need to add a composePlugins util similar to @nrwl/webpack so these things are easier to do. The example outlined here is how it can be done for now: #15794 (comment).
We'll add something to Nx 16 to make this easier to work with:
const plugins = [
// Add as many plugins here
withMDX,
withNx
// ...
];
// The composed function will know how to handle normal plugins and plugins that return an async function (e.g. `withNx`).
module.exports = composePlugins(...plugins)({
// normal next.js config
});
Current Behavior
Apps that use other Next.js plugins, such as remove-imports [ref], may not function properly with the latest version of Nx.
Example
Here's an example of a library component import failure that occurred when using a previously functioning plugin:
The
next.config.ts
file of the application:Removing the plugin resolves the error.
Expected Behavior
It should continue to function with the plugins that were previously operational.
GitHub Repo
https://github.com/raphzandrade/next-errors
Steps to Reproduce
Nx Report
Failure Logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: