admin管理员组文章数量:1024603
When I was trying to open my Nuxt project in browser, I got the following error SyntaxError Unexpected token {
. But I have found nothing wrong with the wrong information as shown in the following picture. Have anyone run into the same problem? Thanks a lot for your answers!
When I was trying to open my Nuxt project in browser, I got the following error SyntaxError Unexpected token {
. But I have found nothing wrong with the wrong information as shown in the following picture. Have anyone run into the same problem? Thanks a lot for your answers!
-
thats an syntax error.. I guess you have an
{
somewhere too much – Ilijanovic Commented Apr 22, 2020 at 7:55 -
@Ifaruki The error code in the
node_modules/vue-server-renderer/build.dev.js
. It's a third party module which Nuxt depends on, not my own code. – user11081925 Commented Apr 22, 2020 at 8:00 - Try reinstalling it, maybe the file got corrupted. But if this isn't your code, then your question is off-topic here. We're here to help you fix your code, not third party code. – Barmar Commented Apr 22, 2020 at 8:08
-
can you please give us your page and its layout and also your
nuxt.config.js
code? – Ali Hosseini Commented Apr 22, 2020 at 8:17
1 Answer
Reset to default 2As @Barmer mentioned, I have deleted the node_modules
and rerun npm install
, then it works well.
When I was trying to open my Nuxt project in browser, I got the following error SyntaxError Unexpected token {
. But I have found nothing wrong with the wrong information as shown in the following picture. Have anyone run into the same problem? Thanks a lot for your answers!
When I was trying to open my Nuxt project in browser, I got the following error SyntaxError Unexpected token {
. But I have found nothing wrong with the wrong information as shown in the following picture. Have anyone run into the same problem? Thanks a lot for your answers!
-
thats an syntax error.. I guess you have an
{
somewhere too much – Ilijanovic Commented Apr 22, 2020 at 7:55 -
@Ifaruki The error code in the
node_modules/vue-server-renderer/build.dev.js
. It's a third party module which Nuxt depends on, not my own code. – user11081925 Commented Apr 22, 2020 at 8:00 - Try reinstalling it, maybe the file got corrupted. But if this isn't your code, then your question is off-topic here. We're here to help you fix your code, not third party code. – Barmar Commented Apr 22, 2020 at 8:08
-
can you please give us your page and its layout and also your
nuxt.config.js
code? – Ali Hosseini Commented Apr 22, 2020 at 8:17
1 Answer
Reset to default 2As @Barmer mentioned, I have deleted the node_modules
and rerun npm install
, then it works well.
本文标签: javascriptNuxt SyntaxError Unexpected token Stack Overflow
版权声明:本文标题:javascript - Nuxt: SyntaxError Unexpected token { - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745608450a2158865.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论