structor icon indicating copy to clipboard operation
structor copied to clipboard

Error when starting server in a create-react-app project

Open lane-s opened this issue 6 years ago • 0 comments

TypeError: Cannot read property 'compilation' of undefined
    at OccurrenceOrderPlugin.apply (test/node_modules/webpack/lib/optimize/OccurrenceOrderPlugin.js:20:18)
    at Compiler.apply (structor/node_modules/tapable/lib/Tapable.js:375:16)
    at webpack (structor/node_modules/webpack/lib/webpack.js:32:19)
    at getDevMiddlewareCompiler (structor/server/structor/middlewareCompilerManager.js:1:303)
    at Object.getDevMiddleware (structor/server/structor/middlewareCompilerManager.js:1:655)
    at initServer (structor/server/structor/controller.js:1:604)
    at Object.setServer (structor/server/structor/controller.js:1:494)
    at initStructorController (structor/server/controller.js:1:2028)

Steps to reproduce:

  1. npx create-react-app test
  2. cd test
  3. npm install structor
  4. npm install -D cross-env
  5. Edit package.json as described in structor readme for integrating with create-react-app
  6. structor -v

lane-s avatar Dec 14 '18 20:12 lane-s