Comments (3)
Thanks for reporting this issue, could you share your webpack config file? I am also using webpack uglify plugin in my project but haven't encountered this error.
from iso-639-1.
Here's the main webpack config file: https://github.com/WikiEducationFoundation/WikiEduDashboard/blob/master/gulp/tasks/webpack.js
Also possibly relevant: https://github.com/WikiEducationFoundation/WikiEduDashboard/blob/master/.babelrc
It's possibly that different babel config would fix the problem, as I think it's caused by ES6 syntax that Uglify doesn't handle... so if it's already transpiled to ES5, I've read that it should work.
Interestingly, the error doesn't cause any noticeable effects in the development environment — things all work as expected, including the use of this module, and there are no console errors — but the browser tests all fail.
from iso-639-1.
I think we include different version of UglifyJsPlugin,
In my webpack config file:
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
new UglifyJsPlugin({ ... })
In your config file #L54:
new webpack.optimize.UglifyJsPlugin({ ... })
The bellow explaination is from webpack-contrib/uglifyjs-webpack-plugin
webpack < v4.0.0 currently contains v0.4.6 of this plugin under webpack.optimize.UglifyJsPlugin as an alias.
I guess the error will disappear when you update the UglifyJsPlugin module.
from iso-639-1.
Related Issues (20)
- Support three letter codes HOT 3
- Usage with TypeScript HOT 4
- Cyrillic vs Latin variants HOT 3
- .validate behaves incorrectly for prototype property names as code HOT 1
- Changelog? HOT 2
- import { getNativeName, getCode } from "iso-639-1" ; not working after updating webpack 4 version . HOT 4
- FEATURE: Capitalize the first letter of all languages HOT 6
- License is missing HOT 1
- Should be "Polski" instead "język polski" HOT 1
- Missing Montenegrin localization HOT 2
- How about iso-639-2 languages? HOT 1
- ChainAlert: npm package release (2.1.14) has no matching tag in this repo HOT 1
- validate fn expecting LanguageCode instead string HOT 2
- TypeError: Cannot read properties of undefined (reading 'toLowerCase') HOT 1
- ISO6391 ES6 import undefined HOT 1
- import as ES module give me an undefined object HOT 5
- Types are not exported HOT 3
- Miss 2 languages bh and sh
- Incorrect typing.
- Add language: Brazilian Portuguese
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 iso-639-1.