Skip to content

Unable to install and run #370

Open
Open

Description

@ajayd-san

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:

> epgg@54.0.2 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

Activity

  1. lidaof commented on May 8, 2025

    @lidaof
    Owner

    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?

  2. ajayd-san commented on May 8, 2025

    @ajayd-san
    Author

    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.

  3. lidaof commented on May 8, 2025

    @lidaof
    Owner

    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?

  4. ajayd-san commented on May 12, 2025

    @ajayd-san
    Author

    Hey, Thanks for your help. it works now

  5. ajayd-san commented on May 14, 2025

    @ajayd-san
    Author

    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:

    
    
    > epgg@54.0.2 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?

  6. lidaof commented on May 14, 2025

    @lidaof
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions