structor
structor copied to clipboard
Error when starting server in a create-react-app project
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:
npx create-react-app testcd testnpm install structornpm install -D cross-env- Edit package.json as described in structor readme for integrating with create-react-app
structor -v