facebook / lexical

Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.
https://lexical.dev
MIT License
17.37k stars 1.43k forks source link

Bug: Missing semicolon error when I run npm start on second time of the cloned repo #5895

Closed satnam7777 closed 2 weeks ago

satnam7777 commented 2 weeks ago

Lexical version: 0.14.3

Steps To Reproduce

  1. clone the repo and run npm start. It will run
  2. whenever I run npm start on next day then it is giving me this error

Link to code example:

The current behavior getting missing error

The expected behavior It should run the project

image

image

etrepum commented 2 weeks ago

Which repo are you referring to exactly? What version of node and npm are you using? Have you tried removing node_modules (and any packages/*/node_modules directories) and then running npm install?

I can not reproduce anything like this, and that file is not one that our build processes would touch. I suspect it may be something to do with your local environment, maybe you accidentally edited that file or you have some editor plugin that is doing it?

Console session of `npm run start` several times with no errors ``` lexical-main (6602ab5) [$?] via  v20.10.0 ❯ node --version v20.10.0 lexical-main (6602ab5) [$?] via  v20.10.0 ❯ npm --version 10.2.3 lexical-main (6602ab5) [$?] via  v20.10.0 ❯ npm start > @lexical/monorepo@0.14.3 start > cross-env NODE_ENV=development concurrently "npm:collab" "npm run dev --prefix packages/lexical-playground" [collab] [collab] > @lexical/monorepo@0.14.3 collab [collab] > cross-env HOST=localhost PORT=1234 npx y-websocket-server [collab] [1] [1] > lexical-playground@0.14.3 dev [1] > vite --host [1] [1] [1] vite v2.9.16 dev server running at: [1] [1] > Local: http://localhost:3000/ [1] > Network: http://192.168.1.76:3000/ [1] > Network: http://100.103.235.71:3000/ [1] [1] ready in 315ms. [1] [collab] running at 'localhost' on port 1234 ^C[collab] npm run collab exited with code 0 [1] npm run dev --prefix packages/lexical-playground exited with code SIGINT lexical-main (6602ab5) [$?] via  v20.10.0 took 14s ❯ npm start > @lexical/monorepo@0.14.3 start > cross-env NODE_ENV=development concurrently "npm:collab" "npm run dev --prefix packages/lexical-playground" [1] [1] > lexical-playground@0.14.3 dev [1] > vite --host [1] [collab] [collab] > @lexical/monorepo@0.14.3 collab [collab] > cross-env HOST=localhost PORT=1234 npx y-websocket-server [collab] [1] [1] vite v2.9.16 dev server running at: [1] [1] > Local: http://localhost:3000/ [1] > Network: http://192.168.1.76:3000/ [1] > Network: http://100.103.235.71:3000/ [1] [1] ready in 198ms. [1] [collab] running at 'localhost' on port 1234 ^C[collab] npm run collab exited with code 0 [1] npm run dev --prefix packages/lexical-playground exited with code SIGINT lexical-main (6602ab5) [$?] via  v20.10.0 took 10s ❯ npm start > @lexical/monorepo@0.14.3 start > cross-env NODE_ENV=development concurrently "npm:collab" "npm run dev --prefix packages/lexical-playground" [1] [1] > lexical-playground@0.14.3 dev [1] > vite --host [1] [collab] [collab] > @lexical/monorepo@0.14.3 collab [collab] > cross-env HOST=localhost PORT=1234 npx y-websocket-server [collab] [1] [1] vite v2.9.16 dev server running at: [1] [1] > Local: http://localhost:3000/ [1] > Network: http://192.168.1.76:3000/ [1] > Network: http://100.103.235.71:3000/ [1] [1] ready in 201ms. [1] [collab] running at 'localhost' on port 1234 ^C[1] npm run dev --prefix packages/lexical-playground exited with code SIGINT [collab] npm run collab exited with code 0 ```
acywatson commented 2 weeks ago

Feel free to reopen with a repro