Closed darekkay closed 6 years ago
Yeah, we should probably strip out debug.js entirely for prod builds. Thanks for the report!
Fixed in 0.23.3.
Thanks for fixing this so quickly! 😄
I'm having the same issue in 0.28.1. Line 1770 of boardgame.io/dist/react.js
What version of create-react-app are you using?
2.1.8
Can you try upgrading to 0.31.4 (the latest version of boardgame.io)? I also added an integration test that verifies that CRA can build, so it should definitely work for the versions after 0.30.
Thanks for the help and quick response!
I've created a
create-react-app
project (as suggested in your docs) and added boardgame.io. In dev mode (npm run start
), everything works fine. However, a production build (npm run build
) fails to minify. The error message points toboardgame.io/dist/react.js
line 841, so it's probablyasync/await
causing the problems. I've removed thesimulate
function (it's not really needed in production, as it is part of the debug module) and the build run successfully.My environment:
node
: 8.11.1npm
: 6.1.0create-react-app
: 1.5.2boardgame.io
: 0.23.2