I am using ViteJS, which using Rollup for production build. (instead of create-react-app - Webpack)
Works well in development, I absolutely love it.
However, when building for production, and running in localhost, browser console shows this
Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=object&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
Any help is appreciated, not sure if it is due to Rollup giving this error??
react-switch having issues with rollup.
I changed import statement from
import Switch from 'react-switch';
to
import Switch from 'react-switch/dist/react-switch.dev.js';
I am using ViteJS, which using Rollup for production build. (instead of create-react-app - Webpack)
Works well in development, I absolutely love it. However, when building for production, and running in localhost, browser console shows this
Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=object&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
Any help is appreciated, not sure if it is due to Rollup giving this error??
Below is my code,