ct-material-kit-pro-react
ct-material-kit-pro-react copied to clipboard
[Bug] Cant start or build project (Module parse error) [Clean install]
Version
2.1.0
Reproduction link
https://www.creative-tim.com/downloads
Operating System
Windows Server
Device
Desktop
Browser & Version
Steps to reproduce
- Clean download of the product from "My Purchase"
- npm install all dependencies
- npm start
What is expected?
Website starting up
What is actually happening?
Module parse errors:
Starting the development server...
One of your dependencies, babel-preset-react-app, is importing the
Failed to compile.
Module parse failed: Unexpected token (138:13)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
* ./node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
| // `return some()`, `else if()`, `(x*sum(1, 2))`
| variants: [{
> begin: /=/,
| end: /;/
| }, {
ERROR in ./node_modules/highlight.js/lib/languages/arduino.js 138:13
Module parse failed: Unexpected token (138:13)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
* ./node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
| // `return some()`, `else if()`, `(x*sum(1, 2))`
| variants: [{
> begin: /=/,
| end: /;/
| }, {
ERROR in ./node_modules/highlight.js/lib/languages/c-like.js 138:13
Module parse failed: Unexpected token (138:13)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
* ./node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
| // `return some()`, `else if()`, `(x*sum(1, 2))`
| variants: [{
> begin: /=/,
| end: /;/
| }, {
And so on...
Solution
Additional comments
I purchased in August and installed the product. I developed until now and everything worked fine. I guess its because i installed all dependencies before.
Now, to deploy, we tried a new install on diffrent servers and then we recognized the issue. After trying to solve and reproduce i also crashed my project and its not working anymore with the same errors.