eg-react icon indicating copy to clipboard operation
eg-react copied to clipboard

Unable to install and run

Open ajayd-san opened this issue 8 months ago • 6 comments

Hey, I'm trying to run the frontend of the browser. I'm using node 16 and do npm install and then npm start only to get this error:

> [email protected] start
> react-app-rewired start

Failed to compile.

Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
 - configuration.module.rules[2] has an unknown property 'query'. These properties are valid:
   object { assert?, compiler?, dependency?, descriptionData?, enforce?, exclude?, generator?, include?, issuer?, issuerLayer?, layer?, loader?, mimetype?, oneOf?, options?, parser?, realResource?, resolve?, resource?, resourceFragment?, resourceQuery?, rules?, scheme?, sideEffects?, test?, type?, use? }
   -> A rule description with conditions and effects for modules.

I changed query to options in config-overrides.js and it still doesn't work. Spits out more errors - pastebin.

This is after I changed the node version to 16.20.2.

I also tried referring to #332. I downloaded the frontend.zip you provided and tried running it and I get the same error.

Any help is appreciated, thanks

ajayd-san avatar May 08 '25 16:05 ajayd-san

Hi @ajayd-san you might need downgrade typescript to 3.4.5 or something close.. in the meantime, would you like to try the upgrade version instead at https://github.com/twlab/eg3?

lidaof avatar May 08 '25 16:05 lidaof

hey, thanks for your swift reply. I downgraded ts to 3.4.5, ran npm install and npm start. I get more compilation errors: https://pastebin.com/qN9iLgL1.

My lab already uses the this version, it would not be possible to move to a different version.

ajayd-san avatar May 08 '25 16:05 ajayd-san

Hi @ajayd-san i see. just want to confirm, if you download the frontend.zip file, unzip it, use node v16, on the unzipped folder, if you run npm start directly, it doesn't work?

lidaof avatar May 08 '25 18:05 lidaof

Hey, Thanks for your help. it works now

ajayd-san avatar May 12 '25 16:05 ajayd-san

Hey again, although I can run it with npm start. Running npm install (to install dev dependencies, etc) and then running npm run does not compile. I get the following error:



> [email protected] start
> react-app-rewired start

Failed to compile.

Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
 - configuration.module.rules[2] has an unknown property 'query'. These properties are valid:
   object { assert?, compiler?, dependency?, descriptionData?, enforce?, exclude?, generator?, include?, issuer?, issuerLayer?, layer?, loader?, mimetype?, oneOf?, options?, parser?, realResource?, resolve?, resource?, resourceFragment?, resourceQuery?, rules?, scheme?, sideEffects?, test?, type?, use? }
   -> A rule description with conditions and effects for modules.

Is this version not under development anymore? Would you suggest migrating to eg3?

ajayd-san avatar May 14 '25 00:05 ajayd-san

Hi @ajayd-san for your eg3 question, yes, we have a lot of trouble when updating with npm install and the tool chain breaks the code, that's one of the reason we started eg3.

in my local, sometimes i can do npm install pkg, which seems ok as it slightly modify the dependencies, but with npm install it won't work again...which makes us can only develop without adding dependencies....

really sorry for the trouble, encourage you to try eg3, it's newer and faster.

lidaof avatar May 14 '25 14:05 lidaof