SyntaxError: Unexpected identifier
See original GitHub issuei delete .nuxt node_modules package-lock same error i have no idea i also added it to transpile
ATAL SyntaxError: Unexpected identifier 16:51:25
at parse (node_modules/gray-matter/lib/engines.js:48:13)
at Object.parse (node_modules/gray-matter/lib/engines.js:46:16)
at module.exports (node_modules/gray-matter/lib/parse.js:12:17)
at parseMatter (node_modules/gray-matter/index.js:109:17)
at matter (node_modules/gray-matter/index.js:50:10)
at extractExtrasFromRoute (node_modules/@nuxtjs/router-extras/lib/extras.js:88:20)
at async extendRoutes (node_modules/@nuxtjs/router-extras/lib/extras.js:19:20)
at async Nuxt.callHook (node_modules/hable/lib/hookable.js:50:7)
at async Builder.resolveRoutes (node_modules/@nuxt/builder/dist/builder.js:5801:5)
at async Promise.all (index 1)
at async Builder.generateRoutesAndFiles (node_modules/@nuxt/builder/dist/builder.js:5662:5)
at async Builder.build (node_modules/@nuxt/builder/dist/builder.js:5585:5)
at async Object._startDev (node_modules/@nuxt/cli/dist/cli-dev.js:84:5)
at async Object.startDev (node_modules/@nuxt/cli/dist/cli-dev.js:48:20)
at async Object.run (node_modules/@nuxt/cli/dist/cli-dev.js:43:5)
at async NuxtCommand.run (node_modules/@nuxt/cli/dist/cli-command.js:2567:7)
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ โ Nuxt Fatal Error โ
โ โ
โ SyntaxError: SyntaxError: Unexpected identifier โ
โ โ
node version 12.5.0 nuxt 2.9.2 Macos
thanks
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
SyntaxError: Unexpected identifier in JavaScript [Solved]
To solve the "Uncaught SyntaxError: Unexpected identifier" error, make sure you don't have any misspelled keywords, e.g. Let or Function instead of let...
Read more >Unexpected Identifier in Chrome's Javascript console
I got SyntaxError: Unexpected identifier error, for invalid order between async and static, static must come first.
Read more >How To Solve The Unexpected Identifier Error in JavaScript
How do you fix this Unexpected identifier error in your code? The simplest thing you can do to find a specific error like...
Read more >A Common Cause of "Uncaught syntax error - Techstacker
A Common Cause of "Uncaught syntax error: unexpected identifier" in JavaScript ... One of the most common reasons is that you're trying to...
Read more >How to Fix "Uncaught SyntaxError: Unexpected identifier" in ...
In most cases, it is just code that is not adhering to the JavaScript syntax rules or contains typos. Hopefully, this post has...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There might be a syntax error in one of your componentโs router part (<router>). Unluckily, the build error doesnโt show where exactly the error occured, so theres a little manual work needed.
Thank you so much @Tinoooo, I had the same error but it wasnโt too descriptive, after seeing your answer I checked my code and I was missing a comma in the routes.