Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Npm start- SyntaxError: Unexpected token ; #597

Open
eszabo12 opened this issue Feb 10, 2023 · 9 comments
Open

Npm start- SyntaxError: Unexpected token ; #597

eszabo12 opened this issue Feb 10, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@eszabo12
Copy link

eszabo12 commented Feb 10, 2023

Describe the bug

`Fetching profile data for eszabo12
statusCode: 200
saved file to public/profile.json
/home/elle/Repos/web/developerFolio/node_modules/eslint-webpack-plugin/node_modules/jest-worker/build/index.js:110
_ending;
^

SyntaxError: Unexpected token ;
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/elle/Repos/web/developerFolio/node_modules/eslint-webpack-plugin/dist/getESLint.js:9:5)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node fetch.js && react-scripts start
npm ERR! Exit status 1`

Steps to reproduce

I cloned the repo, edited the environment file, and did npm install. I also tried npm install --legacy-peer-deps, 'npm ci && npm install', nothing worked. Nodejs is successfully installed on my computer. OS: Ubuntu 20.04. Environment: VSCode.

Expected behavior

Something definitely not that.

Is this responsiveness Issue

NO

Screenshots

No response

Desktop

  • OS: Ubuntu 20.04

Smartphones

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

I cloned the master just a few days ago.

@eszabo12 eszabo12 added the bug Something isn't working label Feb 10, 2023
@sadapasta
Copy link
Contributor

@eszabo12 can you please send the screenshot in the thread

@eszabo12
Copy link
Author

eszabo12 commented Feb 12, 2023

Screenshot from 2023-02-11 22-17-44

the code formatting won't work for the error, sry

it seems to be a jest-worker installation related error

@saadpasta
Copy link
Owner

I can't seems to reproduce this on my machine can you tell me your node version

@eszabo12
Copy link
Author

v10.19.0

@saadpasta
Copy link
Owner

please update your node version to 16.x.x

@frankcaoyun
Copy link

frankcaoyun commented Mar 4, 2023

Hi @saadpasta ,I encounter the same error using the docker image:

$ docker run -t -p 3000:3000 developerfolio:latest

> [email protected] start /app
> node fetch.js && react-scripts start

/app/node_modules/eslint-webpack-plugin/node_modules/jest-worker/build/index.js:110
  _ending;
         ^

SyntaxError: Unexpected token ;
    at Module._compile (internal/modules/cjs/loader.js:721:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/app/node_modules/eslint-webpack-plugin/dist/getESLint.js:9:5)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node fetch.js && react-scripts start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-03-04T07_50_38_360Z-debug.log
[ble: exit 1]

Look forward to a fix soon :)

@hiteshwar21
Copy link

I faced the same issue using the latest node version. Had to get it back to 16.XX to work.

@jamesjiayu
Copy link

I have the same issue when using docker...

@Meruman
Copy link

Meruman commented Aug 15, 2023

Which version of node is the one working? I tried 16.13.0 but then I got another error in docker when I try to build it.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants