Open brandoncollins7 opened 1 year ago
Anyone have any clue what's going on here?
1+
+1
any updates?
+1
+1
+1
Any news on this? It's very annoying. I try to modify webpack config like this
{
...,
ignoreWarnings: [
/@evmos\/proto/i,
/@evmos\/transactions/i,
/@evmos\/eip712/i,
/ethereumjs-util/i,
]
}
and this
{
...,
"plugins": [
...,
new SourceMapDevToolPlugin({
exclude: /node_modules/i,
})
]
}
But no results.
nx report
❯ yarn nx report
NX Report complete - copy this into the issue template
Node : 20.11.1
OS : darwin-arm64
yarn : 4.1.1
nx : 18.3.4
@nx/js : 18.3.4
@nx/jest : 18.3.4
@nx/linter : 18.3.4
@nx/eslint : 18.3.4
@nx/workspace : 18.3.4
@nx/cypress : 18.3.4
@nx/devkit : 18.3.4
@nx/eslint-plugin : 18.3.4
@nx/next : 18.3.4
@nx/react : 18.3.4
@nx/rollup : 18.3.4
@nrwl/tao : 18.3.4
@nx/web : 18.3.4
@nx/webpack : 18.3.4
typescript : 5.4.5
---
Registered Plugins:
@nx/next/plugin
@nx/cypress/plugin
@nx/eslint/plugin
@nx/jest/plugin
@nx/rollup/plugin
@nx/webpack/plugin
UPD:
Adding sourceMap:process.env['NODE_ENV'] !== 'production'
to the NxWebpackPlugin
options also did not give the desired result
Hello! I faced the same problem and wrote a simple webpack plugin
class FilterSourceMapsWarnings {
apply(compiler) {
compiler.options.ignoreWarnings.push(
(x) => /Failed to parse source/.test(x)
);
}
}
add the plugin to the end of the plugins
section in the webpack config
plugins: [
// all your previous plugins
new FilterSourceMapsWarnings(),
]
I think that the main reason, why webpack's ignoreWarnings
not working is here
https://github.com/nrwl/nx/blob/master/packages/webpack/src/plugins/nx-webpack-plugin/lib/apply-base-config.ts#L139
I'll try to provide MR soon
But the real question is why is it failing at all?
Current Behavior
many of my webpack builds are showing tons of these errors that really fill up my logs with every build. App seems to work fine, any ideas what could be causing this?
ex.
Expected Behavior
no need for all these warnings, what do they mean?
GitHub Repo
No response
Steps to Reproduce
1.
Nx Report
Failure Logs
Operating System
Additional Information
No response