Closed RealSGII2 closed 4 years ago
Oops, my bad. I've reread readme.md and found what I was missing.
It's already been compiled to react-flexbox-grid/dist
.
So basically, in order to fix this issue with Next.js:
import 'react-flexbox-grid/dist/react-flexbox-grid.css'
import { Grid, Row, Col } from 'react-flexbox-grid/dist/react-flexbox-grid'
I fixed my issue ! Thanks you very much !
That solution doesn't work, get an error alert with PropTypes.
react-jsx-runtime.development.js:117 Warning: Failed prop type: Calling PropTypes validators directly is not supported by the
prop-typespackage. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types
Please check, thanks.
Description:
I am currently trying to use this system with my App that also uses Next.js. However, I am getting an error that states that
react-flexbox-grid
is importing global CSS and is being disallowed to. You can read more about this here: https://github.com/zeit/next.js/blob/master/errors/css-npm.mdAccording to Vercel:
It would be nice if it was compiled so that way I may use it.
Full Error: