redux-api icon indicating copy to clipboard operation
redux-api copied to clipboard

Error starting example

Open YPCrumble opened this issue 7 years ago • 1 comments

Thanks for building redux-api!

I try running the example by switching to /redux-api/examples/isomorphic, running yarn, then yarn start. Here's the error I'm getting:

yarn run v1.9.4
$ node_modules/.bin/webpack --process --watch & node_modules/.bin/pm2-dev start server.js
Hash: 0973581eeac8a5902887
Version: webpack 1.15.0
Time: 3101ms
  Asset     Size  Chunks             Chunk Names
main.js  2.71 MB       0  [emitted]  main
    + 370 hidden modules

ERROR in /Users/ian/Projects/redux-api/src/adapters/fetch.js
Module build failed: ReferenceError: Unknown plugin "add-module-exports" specified in "/Users/ian/Projects/redux-api/.babelrc" at 0, attempted to resolve relative to "/Users/ian/Projects/redux-api"
    at /Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
    at Array.map (native)
    at Function.normalisePlugins (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
    at OptionManager.mergeOptions (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
    at OptionManager.init (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-core/lib/transformation/file/index.js:212:65)
    at new File (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-core/lib/transformation/file/index.js:135:24)
    at Pipeline.transform (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-loader/lib/index.js:46:20)
    at Object.module.exports (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-loader/lib/index.js:163:20)
 @ ./app/client.jsx 31:13-52

ERROR in /Users/ian/Projects/redux-api/src/index.js
Module build failed: ReferenceError: Unknown plugin "add-module-exports" specified in "/Users/ian/Projects/redux-api/.babelrc" at 0, attempted to resolve relative to "/Users/ian/Projects/redux-api"
    at /Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
    at Array.map (native)
    at Function.normalisePlugins (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
    at OptionManager.mergeOptions (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
    at OptionManager.init (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-core/lib/transformation/file/index.js:212:65)
    at new File (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-core/lib/transformation/file/index.js:135:24)
    at Pipeline.transform (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-loader/lib/index.js:46:20)
    at Object.module.exports (/Users/ian/Projects/redux-api/examples/isomorphic/node_modules/babel-loader/lib/index.js:163:20)
 @ ./app/utils/rest.js 7:16-36

Any thoughts on how to work around this?

YPCrumble avatar Aug 13 '18 18:08 YPCrumble

If you run npm install or yarn equivalent from the root of the repo it solves the issue you are having. However, I have found that after that you still can't access the app on localhost port 4444.

rupertrutland avatar Dec 24 '18 19:12 rupertrutland