Closed scrossan-crown closed 5 years ago
Installing browserslist
package manually fixed the issue
After getting the project to build i get the following error in the console that wasn't there previously
hoist-non-react-statics.cjs.js:31 Uncaught Error: Cannot find module 'MOM9'
at u (hoist-non-react-statics.cjs.js:31)
at u (account.8730b2f1.js:1)
at p (account.8730b2f1.js:1)
at Object.parcelRequire.vRc9.@babel/runtime/helpers/interopRequireDefault (AttachMoney.js:3)
at u (account.8730b2f1.js:1)
at p (account.8730b2f1.js:1)
at Object.parcelRequire.8I/B.@babel/runtime/helpers/classCallCheck (account.tsx:15)
at u (account.8730b2f1.js:1)
at parcelRequire.vRc9.@babel/runtime/helpers/interopRequireDefault (account.8730b2f1.js:1)
at account.8730b2f1.js:1
Just as a note it's working perfectly in development
Please try 1.10.1
I've tired 1.10.1 and it's not having the above error but is now having a completely different error when building.
Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
I'm not sure if it helps but I've changed one route component to import the component directly instead of using react-loadable and async imports and it works perfectly
@scrossan-crown well that looks like a react error. If that also happens in a dev build itβs a bug in your code
Sent with GitHawk
@DeMoorJasper the issue is that there are no errors in the dev build but the production build is broken as of 1.10.0-beta.1
Not sure if Iβll be able to do anything without a minimal reprodcuable example. It seems to be a minification issue but we didnβt change any minification in 1.10 afaik
Sent with GitHawk
Ok, Iβll have a play around and try to get a reproducible example up and running.
I think I've found the error, it was a case of the localStorage containing some incorrect data. Thanks for your suggestions and help
π bug report
π Configuration (.babelrc, package.json, cli command)
π€ Expected Behavior
Should build my app into production code (which it did previous to the beta version)
π― Current Behavior
π Possible Solution
π¦ Context
Command run
npx parcel build main.tsx -d public/js
π» Code Sample
π Your Environment