ct-material-kit-pro-react icon indicating copy to clipboard operation
ct-material-kit-pro-react copied to clipboard

[Bug] Cant start or build project (Module parse error) [Clean install]

Open Dietrich-io opened this issue 2 years ago • 0 comments

Version

2.1.0

Reproduction link

https://www.creative-tim.com/downloads

Operating System

Windows Server

Device

Desktop

Browser & Version

Steps to reproduce

  1. Clean download of the product from "My Purchase"
  2. npm install all dependencies
  3. 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.

Dietrich-io avatar Oct 26 '23 23:10 Dietrich-io