Reputation: 53
I has this warning since I install zego-ui-toolkit. I trying reinstall and also delete node_modules but not working. This is not an error that cause my system fail but it really annoying.
Upvotes: 0
Views: 392
Reputation: 313
I suggest that you try an earlier version.
You can find more version here: https://www.npmjs.com/package/@zegocloud/zego-uikit-prebuilt/v/1.7.4?activeTab=versions
Its bad to ignore faults/warnings if you don´t know for sure they are harmless. Might also come new warnings that you want to see.
Upvotes: 0
Reputation: 53
const { override, useBabelRc } = require('customize-cra');
const ignoreWarnings = (value) => (config) => {
config.ignoreWarnings = value;
return config;
};
module.exports = override(useBabelRc(), ignoreWarnings([/Failed to parse source map/]));
I added in my config-override.js and the warning gone. But I want only the warning from zego-ui-toolkit is ignore. What can I do.
Upvotes: 1
Reputation: 392
I know that feel. If you're using webpack, you can configure you webpack.config.js
to ignore this specific warning.
plugins: [
/* Your code */
new webpack.IgnorePlugin(/^\.\/flv\.js\.map$/, /zego-ui-kit-prebuilt/),
],
More information you can read about IgnorePlugin
is here:
https://webpack.js.org/plugins/ignore-plugin/
As you mentioned, it won't affect your application work, but it will affect debugging, cause you will see minified code instead of initial(original) source code in developer tools. I believe, that's all.
Upvotes: 0