Nuxt.js: Module build failed buble.js, templateLoader.js, Parser.pp$4.raise

Created on 13 Feb 2019  Â·  5Comments  Â·  Source: nuxt/nuxt.js

This is not an issue, it's just a big problem, wich I can't resolve by my self. So maybe someone can help me.
When I run dev my nuxt app in ssr mode it give me an error below:

Module build failed (from ./node_modules/vue-loader/lib/loaders/templateLoader.js): SyntaxError: Unexpected token (1:239) at Parser.pp$4.raise (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:2610:13) at Parser.pp.unexpected (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:637:8) at Parser.pp$3.parseParenAndDistinguishExpression (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:2154:49) at Parser.pp$3.parseExprAtom (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:2061:41) at Parser.parseExprAtom (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:4372:24) at Parser.pp$3.parseExprSubscripts (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:1955:19) at Parser.pp$3.parseMaybeUnary (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:1932:17) at Parser.pp$3.parseExprOps (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:1874:19) at Parser.pp$3.parseMaybeConditional (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:1857:19) at Parser.pp$3.parseMaybeAssign (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:1832:19) at Parser.pp$3.parseMaybeConditional (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:1862:28) at Parser.pp$3.parseMaybeAssign (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:1832:19) at Parser.pp$3.parseParenAndDistinguishExpression (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:2139:30) at Parser.pp$3.parseExprAtom (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:2061:41) at Parser.parseExprAtom (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:4372:24) at Parser.pp$3.parseExprSubscripts (e:\OSPanel\domains\webfolder\node_modules\vue-template-es2015-compiler\buble.js:1955:19)

It's also says that my problem in node_modulesvue-template-es2015-compilerbuble.js

When I run dev in spa mode all is good.
Can my .webp extension file effect it?

I checked whole google and nothing can help me.

This question is available on Nuxt community (#c8650)

Most helpful comment

It happened just now to me,
I found out it was an empty <template></template> block.

Panic :|

All 5 comments

This issue as been imported as question since it does not respect nuxt.js issue template. Only bug reports and feature requests stays open to reduce maintainers workload.
If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically.
Your question is available at https://cmty.app/nuxt/nuxt.js/issues/c8650.

What I already done:

  1. Check my all js files for any errors
  2. Rebuild all node_modules
  3. Check google.com for this type of error

Comand line says after complete compilation^

√ Client
Compiled successfully in 4.26s

× Server
Compiled with some errors in 4.62s

Anyone please

It happened just now to me,
I found out it was an empty <template></template> block.

Panic :|

Was this page helpful?
0 / 5 - 0 ratings

Related issues

uptownhr picture uptownhr  Â·  3Comments

bimohxh picture bimohxh  Â·  3Comments

nassimbenkirane picture nassimbenkirane  Â·  3Comments

lazycrazy picture lazycrazy  Â·  3Comments

bimohxh picture bimohxh  Â·  3Comments