Topic: Cannot compile MDBootstrap/Vue
Roman Lopez asked 5 years ago
Expected behavior Installed via Direct Download Ran the following: npm install npm run demo
At first, it complained that there was no eslint configuration, so I can ./node_modules/.bin/eslint --init
However, now it complains about a syntax error in Charts.vue
Unless I did something wrong with the eslint ?
Actual behavior To properly compile...
Resources (screenshots, code snippets etc.)
vue-demo@5.8.1 demo /Library/WebServer/MDBootstrap yarn-or-npm run mdb
vue-demo@5.8.1 mdb /Library/WebServer/MDBootstrap webpack-dev-server --inline --progress --config demo_build/webpack.dev.conf.js --open
94% after seal
ERROR Failed to compile with 1 errors 2:19:35 PM
error in ./demo/docs/Advanced/ChartPage.vue
Syntax Error: SyntaxError: Unexpected token (420:22)
418 | }, 419 | changeData(){
420 | let lineData = {...this.lineChartData}; | ^ 421 | lineData.datasets.forEach(dataset => { 422 | dataset.data = this.randomize(dataset.data); 423 | });
@ ./demo/docs/Advanced/ChartPage.vue 7:0-112 7:0-112 8:0-125 21:2-16 @ ./demo/router/index.js @ ./demo/main.js
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Free
- Premium support: No
- Technology: MDB Vue
- MDB Version: 5.8.0
- Device: MacBook Pro
- Browser: Chrome Version 76.0.3809.87 (Off
- OS: Mojave 10.14.5
- Provided sample code: No
- Provided link: No
Magdalena Dembna staff premium commented 5 years ago
It seems to be an issue with ESlint configuration - although I believe that MDB-Vue-Free-5.8.0 does include
.eslintrc.js
file. Have you tried modifying rules regarding;
?