skip to Main Content

someone knows i should do?
i just was install react on a template then i got this error after i start it

ERROR in ./node_modules/highlight.js/lib/languages/arduino.js 138:13
Module parse failed: Unexpected token (138:13)
File was processed with these loaders:
 * ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
 * ./node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
|     // `return some()`, `else if()`, `(x*sum(1, 2))`
|     variants: [{
>       begin: /=/,
|       end: /;/
|     }, {

3

Answers


  1. We also faced same issue today and found out where the issue was coming from. It seems the issue is from react-syntax-highlighter package.

    Login or Signup to reply.
  2. We had same problem this morning. And upgrading highlight-js to version 11+ from 10.6 solved the problem, but there still could be this problem with different library, who knows what does changed.

    Login or Signup to reply.
  3. This issue has been officially fixed, the specific underlying plug-in impact has not found the reason

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search