Error on npm run production on shapecss
See original GitHub issueI am have error on npm run production
, and its killing me 😦
/js/shapecss.js from UglifyJs Unexpected token: name (Accordion) [./~/shapecss/resources/assets/js/component/Accordion.js:1,0][/js/shapecss.js:19054,6]
I am using shapecss developed in laravel mix.
here is code is look like,
'use strict';
import {Accordion} from "./component/Accordion";
import {Modal} from "./component/Modal";
import {getTab} from "./component/Tab";
import {Nav} from "./component/Nav";
import {Circle} from "./component/shapes/Circle";
import {Parallelogram} from "./component/shapes/Parallelogram";
import {Rectangle} from "./component/shapes/Rectangle";
import {Square} from "./component/shapes/Square";
window.onload = function () {
new Accordion();
new Modal();
getTab();
new Nav();
new Circle();
new Parallelogram();
new Rectangle();
new Square();
}
Accordion class is look like,
export class Accordion{
constructor(){
this.accordionDivs = document.getElementsByClassName('accordion');
if(this.accordionDivs)
this.processAccordions();
}
processAccordions() {
...
}
for detail please check,
Issue Analytics
- State:
- Created 6 years ago
- Comments:24 (7 by maintainers)
Top Results From Across the Web
Error on npm run production on shapecss · Issue #878 - GitHub
I am have error on npm run production, and its killing me :( /js/shapecss.js from UglifyJs Unexpected token: name (Accordion) [.
Read more >POSTCSS - NPM Error Running NPM RUN PRODUCTION
I'm getting the following error anytime I try to run 'npm run production'. The rest of the error is just a list of...
Read more >npm-audit
Run all build scripts (ie, preinstall , install , and postinstall ) scripts for installed packages in the foreground process, sharing standard input,...
Read more >npm run dev is showing error on existing Laravel Project
npm run dev is showing error on existing Laravel Project ... Then I run npm install to install all dependencies and update all...
Read more >superset build failures - npm run build - Google Groups
npm run build # this step errors out. Error: + 2221 hidden modules ... 0.18.0-alpha.3~build: Args: [ '-c', 'NODE_ENV=production webpack --colors --progress' ]....
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
This is not working be ause the es6 version of uglify has not landed yet, you will need to transpiled the js used to es5 before uglify can support it
Mix’s webpack config file doesn’t run Babel on any files in your node_modules directory, so that’s likely the issue.