Coder Social home page Coder Social logo

0.2.0 breaks uglifyjs about vue2-filters HOT 14 CLOSED

freearhey avatar freearhey commented on July 18, 2024 3
0.2.0 breaks uglifyjs

from vue2-filters.

Comments (14)

Ewocker avatar Ewocker commented on July 18, 2024 2

Fail for me as well:
ERROR in static/js/vendor.fed95415f17c4112acf5.js from UglifyJs
Unexpected token: punc (() [./~/vue2-filters/dist/vue2-filters.js:294,0][static/js/vendor.fed95415f17c4112acf5.js:12184,9]

from vue2-filters.

w4matt avatar w4matt commented on July 18, 2024 1

v.0.1.9 I meant. lol

from vue2-filters.

w4matt avatar w4matt commented on July 18, 2024

+1 for this. I'm seeing it too.

from vue2-filters.

jezmck avatar jezmck commented on July 18, 2024

+1

ERROR in static/js/vendor.73ebb7d933ff013261d1.js from UglifyJs
SyntaxError: Unexpected token punc «(», expected punc «:» [./~/vue2-filters/dist/vue2-filters.js:477,0]

from vue2-filters.

freearhey avatar freearhey commented on July 18, 2024

Thank you all for the help! Package is already updated and the error should disappear.

from vue2-filters.

jezmck avatar jezmck commented on July 18, 2024

Sadly, that's not fixed it for me.

Same error as above;

ERROR in static/js/vendor.9d951549d71db2926f90.js from UglifyJs
SyntaxError: Unexpected token punc «(», expected punc «:» [./~/vue2-filters/dist/vue2-filters.js:294,0]

from vue2-filters.

freearhey avatar freearhey commented on July 18, 2024

@jezmck please add some information about your environment so I can reproduce this bug itself.

from vue2-filters.

jezmck avatar jezmck commented on July 18, 2024

@wherefour, did the update fix it for you?

I'm running MacOS X.
The error occurs when I npm run build which runs a WebPack script which, frankly, I don't understand.

(apologies if this doesn't give you what you need)

from vue2-filters.

w4matt avatar w4matt commented on July 18, 2024

Yes, it did. Thanks by the way @freearhey.

I'm using it in Rails 5.1 with Webpacker and Yarn, though, so you probably have a different build process. There is a way I can force compilation locally as if it is a "production" environment and that's how I tracked the failed build down to v0.2.0, so maybe you can try that on your end to help diagnose....?

from vue2-filters.

w4matt avatar w4matt commented on July 18, 2024

Hmm, I was curious so tried to compile locally again and looks like it does fail that way:

ERROR in wherefour-14da8b16eef7b8e38b3b.js from UglifyJs Unexpected token: punc (() [./node_modules/vue2-filters/dist/vue2-filters.js:294,0][wherefour-14da8b16eef7b8e38b3b.js:49516,9]

if I roll back to v1.9.0 it all compiles fine.....

from vue2-filters.

w4matt avatar w4matt commented on July 18, 2024

Not sure if this helps, but it looks like there is an open issue with webpacker 3.0.0 and Heroku: rails/webpacker#739

If I specify v0.1.9 in package.json, it compiles locally. If I change the version to v0.2.0 or v0.2.1, it fails with the error.

Here's the package.json that DOES compile OK:

{
"name": "wfapp",
"private": true,
"engines": {
"node": "^6.11.2",
"yarn": "^0.27.5"
},
"dependencies": {
"@rails/webpacker": "^3.0.0",
"vue": "^2.4.2",
"vue-bootstrap-datetimepicker": "^3.0.0",
"vue-loader": "^13.0.4",
"vue-resource": "^1.3.4",
"vue-template-compiler": "^2.4.2",
"vue2-filters": "^0.1.9"
},
"devDependencies": {
"webpack-dev-server": "^2.7.1"
}
}

from vue2-filters.

xvaara avatar xvaara commented on July 18, 2024

Didn't fix it for me. Here's how to replicate it:
https://asciinema.org/a/GDmVmMy0aFX93EDZeEKnMGa3r

from vue2-filters.

gigaprakosa avatar gigaprakosa commented on July 18, 2024

Fail for me too with the latest version. But fine with v.0.1.9.

from vue2-filters.

jekinney avatar jekinney commented on July 18, 2024

@gigaprakosa stated, Current version:

ERROR in static/js/vendor.efd6b4056f88cc059df7.js from UglifyJs
Unexpected token: punc (() [./~/vue2-filters/dist/vue2-filters.js:294,0][static/js/vendor.efd6b4056f88cc059df7.js:32548,9]

Rolled back to 0.19 good to go

from vue2-filters.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.