MetaCell / geppetto-meta

Other
4 stars 4 forks source link

React redux application doesn't start due to dev dependencies issues #440

Open afonsobspinto opened 1 year ago

afonsobspinto commented 1 year ago

I got a couple of dependency issues when trying to run the example react redux application:

Uncaught Error: Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '@babel/plugin-syntax-dynamic-import' from '/home/afonso/Projects/MetaCell/geppetto-meta/examples/redux-react-app'

Uncaught Error: Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '@babel/plugin-proposal-class-properties' from '/home/afonso/Projects/MetaCell/geppetto-meta/examples/redux-react-app'

./src/index.js
Error: Cannot find module '@babel/plugin-transform-runtime' from '/home/afonso/Projects/MetaCell/geppetto-meta/examples/redux-react-app'
    at Array.map (<anonymous>)

    ./src/index.js
Error: Cannot find module '@babel/preset-env' from '/home/afonso/Projects/MetaCell/geppetto-meta/examples/redux-react-app'
    at Array.map (<anonymous>)

I was adding the missed dependencies one by one but ended up with a new error:

./src/index.js
Error: /home/afonso/Projects/MetaCell/geppetto-meta/examples/redux-react-app/src/index.js: 'loose' mode configuration must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled).
    at transformFile.next (<anonymous>)
    at run.next (<anonymous>)
    at transform.next (<anonymous>)

which I couldn't fix in a speedily way

afonsobspinto commented 1 year ago

Potentially related with https://github.com/babel/babel/issues/11622