Comments (14)
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.
v.0.1.9 I meant. lol
from vue2-filters.
+1 for this. I'm seeing it too.
from vue2-filters.
+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.
Thank you all for the help! Package is already updated and the error should disappear.
from vue2-filters.
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.
@jezmck please add some information about your environment so I can reproduce this bug itself.
from vue2-filters.
@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.
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.
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.
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.
Didn't fix it for me. Here's how to replicate it:
https://asciinema.org/a/GDmVmMy0aFX93EDZeEKnMGa3r
from vue2-filters.
Fail for me too with the latest version. But fine with v.0.1.9.
from vue2-filters.
@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)
- Vue 3 support? HOT 5
- awesome
- Configuration provided is not overriding! HOT 1
- Could you add a time filter, like the DateTimePicker in element ui? HOT 1
- esm build? HOT 1
- Percentage Filter HOT 2
- bytes filter enhancement HOT 4
- Percent filter should not apply multiplications (or always apply it) - negative numbers break. HOT 9
- Change the number of digits after the decimal point does not work when rounding HOT 3
- Option for NaN value for currency filter HOT 1
- How to format Brazil Currency R$ ? HOT 1
- number() option thousandsSeparator does not work HOT 1
- Vue2Filters is not defined error on single html page HOT 1
- Thousand separate when using pluralize HOT 1
- FilterBy object inside another object HOT 1
- percent filter decimalSeparator
- filterBy could be better. HOT 2
- Global configuration update HOT 1
- Order by on nested objects HOT 1
- [Feature request] Add billions (B) and trillions (T) units to number filter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue2-filters.