eslint-webpack-plugin icon indicating copy to clipboard operation
eslint-webpack-plugin copied to clipboard

Build error in ci tool.

Open toknT opened this issue 3 years ago • 2 comments
trafficstars

My reator app (created by create-react-app) build error when in ci tool.(already set CI = true)

Bug report

the error log in ci tool(node image node:16)

[2022-08-24 17:23:44] > react-scripts build
[2022-08-24 17:23:44] 
[2022-08-24 17:23:45] /root/workspace/node_modules/eslint-webpack-plugin/node_modules/jest-worker/build/index.js:110
[2022-08-24 17:23:45]   _ending;
[2022-08-24 17:23:45]          ^
[2022-08-24 17:23:45] 
[2022-08-24 17:23:45] SyntaxError: Unexpected token ;

toknT avatar Aug 24 '22 09:08 toknT

I have same error when build React app in CI/CD. This issue not solved yet? node: 14 eslint: 8.23.0 eslint-webpack-plugin: 3.2.0

yefrvl avatar Sep 07 '22 13:09 yefrvl

+1 here, node 16 & 18 both run into this issue. I have overridden eslint-webpack-plugin to 3.1.1 to workaround.

"overrides": {
    "eslint-webpack-plugin": "3.1.1"
   }

Edit: Turns out it was related to an outdated version of Node, make sure for real that you're using a recent version of Node.

scott-burgess avatar Oct 11 '22 04:10 scott-burgess

Possibly a problem with jest-worker In the next version, the jest-worker dependency will be updated Sorry for delay

ricardogobbosouza avatar Feb 03 '23 14:02 ricardogobbosouza

I change another ci tool and build successfully so close the issue.

toknT avatar Feb 08 '23 03:02 toknT