[2.1.0] UglifyJs Unexpected token: operator (>) [./~/vue-flatpickr-component/src/index.js:4,0]
See original GitHub issue[X] Other : support
Hello,
I’ve integrated your component (thanks for it !) but src/index.js makes my production webpack build fail with this message
ERROR in vendor.9cd50ac0.js from UglifyJs
Unexpected token: operator (>) [./~/vue-flatpickr-component/src/index.js:4,0][vendor.9cd50ac0.js:9,147031]
Seems related to es6 syntax in file below, but I have no idea about a fix.
install: (Vue, options) => {
Vue.component('flat-pickr', component);
require('flatpickr/dist/flatpickr.css');
Any suggestion ? Thx
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Unexpected token: operator (>) from UglifyJs - Stack Overflow
It seems like the error comes from an arrow function in the file escape-key.js . This is ES6 syntax and UglifyJS can't parse...
Read more >Bug, UglifyJs Unexpected token: operator (>) #593 - GitHub
What is the current behaviour? error when building. ✖ ERROR bundle.70001.js from UglifyJs Unexpected token: operator (>) [bundle.70001.js: ...
Read more >How I Fixed: UglifyJs Unexpected token: name (DropIn)
I've been trying – in vain – to build the front end for CodeReviewVideos. The issue I have been hitting upon is as...
Read more >UglifyJs error on production build - sage - Roots Discourse
When building a production build I get this error: scripts/main_0282ea08.js from UglifyJs Unexpected token: operator (>) [scripts/main_0282ea08.js:471,43].
Read more >Unexpected token: operator (>) from UglifyJs - Vue Forum
So for me modifying my webpack.config.js from to use new UglifyJsPlugin() rather than new webpack.optimize.UglifyJsPlugin() fixed the issue.
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
@kermorgant Version 2.4.0 should fix your issue.
npm install vue-flatpickr-component@latest
I was using right ES6 syntax but i dont know why Uglify JS was unable to parse it.Yeah I know about that
On Fri, 5 Apr 2019, 19:12 Ankur Kumar, notifications@github.com wrote: