Open AGallouin opened 1 year ago
Is there a solution for this error?
I also ran into this issue. Are there any updates on when this will be fixed?
No idea. To hide it, we changed the Webpack config: Fill the Caps for it to work on your env.
webpack: {
configure: (webpackConfig) => {
const ignoreWarnings = [
{
message:
/Failed to parse source map from '\/YOUR_REPO_PATH/node_modules\/froala-editor\/js\/languages\/YOUR_LANGUAGE_FILE.js.map' file: Error: ENOENT: no such file or directory, open '\/YOUR_REPO_PATH\/node_modules\/froala-editor\/js\/languages\/YOUR_LANGUAGE_FILE.js.map'/,
},
];
return { ...webpackConfig, ignoreWarnings };
},
},
@AGallouin thanks for the hint! That's definitely an option. It's not fixing the real issue though, but at least I'd get rid of the ugly errors :)
Hello,
First of all, I know this may look like a reopen of https://github.com/froala/wysiwyg-editor/issues/3665 and https://github.com/froala/ember-froala-editor/issues/73, but it doesn't seem to have any solution clearly written (or my poor eyes are unable to find it).
The bug is that there is a source map comment at the end of every language file, but no source map, leading to a warning:
Version: react-froala-wysiwyg: "^4.0.14"
How to reproduce:
Create a standard Create React App project with a typescript template. Add react-froala-wysiwyg
Thanks !