Unexpected token: name (Dom7)
See original GitHub issue- Laravel Mix Version: 1.4.5
- Node Version: v8.6.0
- NPM Version: 5.4.2
- OS: macOS Sierra
I just updated laravel-mix to the latest version and when I run npm run production
I now get the following error:
js/dist/app.js from UglifyJs
Unexpected token: name (Dom7) [./node_modules/dom7/dist/dom7.modular.js:14,0][js/dist/app.js:24688,6]
It works fine with npm run watch
- just when I try to compile for production.
Looks like dom7
package related?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top Results From Across the Web
Unexpected token: name «Dom7», expected: punc «;» - GitHub
when I build the project, the error is appeard. I only use the component with the normal config.
Read more >Cannot fix "Unexpected token name «i», expected punc «;»"
According to forums, the problem is caused because UglifyJs does not support ES6 so I tried to solve it with these links: this...
Read more >Unexpected token: name (Dom7)_心若向阳无谓悲伤的博客
Unexpected token : name (Dom7) ... 今天在运行vue项目的时候,报了这个异常,异常引起的原因是由于在vue项目中使用了4.0以上版本的swiper,Dom7是swiper4.0+ ...
Read more >resolve - CodeAntenna
swiper4以上在ios11以下报错: Unexpected token: name (Dom7) [./node_modules/dom7/dist/dom7.modular.js:16,0] ...
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 FreeTop 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
Top GitHub Comments
For me it was
nolimits4web/Swiper
that was causing this problem - I’ve downgraded tov3.4.2
and the problem went away.When you check the package codebase you’ll see it is now using modules - hence needs es6 compiling.