question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello!

Thanks for awesome library. Unfortunately, I can’t use it with vue-cli, because of the following error. I’m getting this when running: vue add i18n:

 ERROR  Error: Line 81: Unexpected reserved word
Error: Line 81: Unexpected reserved word
    at ErrorHandler.constructError (/Users/findutnyy/.node/11.6.0/lib/node_modules/@vue/cli/node_modules/esprima/dist/esprima.js:5012:22)
    at ErrorHandler.createError (/Users/findutnyy/.node/11.6.0/lib/node_modules/@vue/cli/node_modules/esprima/dist/esprima.js:5028:27)
    at Parser.unexpectedTokenError (/Users/findutnyy/.node/11.6.0/lib/node_modules/@vue/cli/node_modules/esprima/dist/esprima.js:1985:39)
    at Parser.throwUnexpectedToken (/Users/findutnyy/.node/11.6.0/lib/node_modules/@vue/cli/node_modules/esprima/dist/esprima.js:1995:21)
    at Parser.parsePrimaryExpression (/Users/findutnyy/.node/11.6.0/lib/node_modules/@vue/cli/node_modules/esprima/dist/esprima.js:2390:38)
    at Parser.inheritCoverGrammar (/Users/findutnyy/.node/11.6.0/lib/node_modules/@vue/cli/node_modules/esprima/dist/esprima.js:2285:37)
    at Parser.parseLeftHandSideExpressionAllowCall (/Users/findutnyy/.node/11.6.0/lib/node_modules/@vue/cli/node_modules/esprima/dist/esprima.js:2899:26)
    at Parser.inheritCoverGrammar (/Users/findutnyy/.node/11.6.0/lib/node_modules/@vue/cli/node_modules/esprima/dist/esprima.js:2285:37)
    at Parser.parseUpdateExpression (/Users/findutnyy/.node/11.6.0/lib/node_modules/@vue/cli/node_modules/esprima/dist/esprima.js:3004:26)
    at Parser.parseUnaryExpression (/Users/findutnyy/.node/11.6.0/lib/node_modules/@vue/cli/node_modules/esprima/dist/esprima.js:3048:26)

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kazuponcommented, Jan 15, 2019

As a result of investigation, it was caused by code due to dynamic importing of import of src/main.js.

I have reported to Vue CLI issue it. https://github.com/vuejs/vue-cli/issues/3309

In generally, src/main.(js|ts) with Vue CLI generated should not be wrote many codes. I recommend you should be wroten other js|ts file, and import to main.(js|ts).

0reactions
indutnycommented, Jan 15, 2019

Glad to hear that! Thank you! 🤗

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Generator Fault Codes & What To Do -
Common Generator Fault Codes & What To Do · AC Sensing Loss · Battery Charger Fault · Low Battery Voltage · Low Engine...
Read more >
Guardian Home Standby Error Codes - Generac Power Systems
Explore some of our most common error codes, and learn about what you should do if your generator displays them.
Read more >
Generator Problems & How to Fix Them | Valley Power Systems
generator problems valley power systems 8 Most Common Generator Problems · Leaks · Low Coolant · No Fuel · Generator Failure · Fuel...
Read more >
Understanding Generator Error Codes - Energy United
Troubleshooting a problem with your home generator can be as simple as understanding and correcting the error code displayed. Code 1100. Overcrank. Reset...
Read more >
Onan Troubleshooting Codes.pdf - Heartland Owners Manuals
TROUBLESHOOTING lists the Fault ... fault shutdown, the indicator light will repeatedly ... GENERATOR ROTOR FAULT—CODE NO. 41.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found