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
Hi just letting you guys know that a team member of mine introduced this npm package to our chrome extension project. Afterwards when I build the project for a release artifact using webpack and try to add the artifact to the chrome browser then chrome prompts me this issue:
Could not load file 'pages/defaulthighlighthandler.js' for content script. It isn't UTF-8 encoded.
The defaulthighlighthandler.js is simply the file within my build that is implementing the code using xregexp.
I resolved this by uninstalling the xregexp package, and we are now using the buildin js regex API.
My team member simply used the following to trigger the issue:
import XRegExp from 'xregexp';
const unicodeLetter = XRegExp('^\\pL+$');
if (unicodeLetter.test(selectedText)) {
...
}
Hi just letting you guys know that a team member of mine introduced this npm package to our chrome extension project. Afterwards when I build the project for a release artifact using webpack and try to add the artifact to the chrome browser then chrome prompts me this issue:
The
defaulthighlighthandler.js
is simply the file within my build that is implementing the code using xregexp.I resolved this by uninstalling the xregexp package, and we are now using the buildin js regex API.
My team member simply used the following to trigger the issue:
I have following dependencies:
node: v12.22.1
npm: v6.14.12
tsc: v4.3.2
"webpack": "^4.35.0",
"webpack-cli": "^3.3.5",
"react": "^16.12.0",
Hope it can help you and I will do my best to answer questions.
The text was updated successfully, but these errors were encountered: