Nargonath / cra-build-watch

A script for create-react-app that writes development builds to the disk
MIT License
136 stars 38 forks source link

Beta version does not work for me #367

Closed norcino closed 5 months ago

norcino commented 2 years ago

After updating to react-scripts 5 I am unable to use cra-build-watch, which for me worked really well. As part of the investigation to resolve I found your suggestion to try the beta and so I did. The installation and update of the webpack config succeeded but failed the start.

Context

What was the result you got?

rimraf ./build && react-scripts start

Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.

  • options has an unknown property 'writeToDisk'. These properties are valid: object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, server?, setupExitSignals?, setupMiddlewares?, static?, watchFiles?, webSocketServer? }

What result did you expect?

To be able to run react-scripts start and see the build folder being generated

Nargonath commented 5 months ago

Sorry I don't have time to maintain this project anymore so I'll archive it and add a note in the README. Feel free to fork it as you see fit.