Open krishna-fenixwork opened 1 year ago
Hi! Thanks for reaching out.
In your nextjs project are you using PostCSS to apply flex-gqp-polyfill
as a plugin? I'm not that familiar with nextjs, but my guess would be flex-gap-polyfill
is not being applied correctly as a PostCSS plugin.
Hi, there
I'm using this library for browser compatibility of CSS gap property in Safari < 14. On localhost, it is working fine but when I deploy my next js application it says "Reference error: module is not defined". I use CSS modules.
I'm importing it into index.tsx file inside the pages directory like this -
import 'flex-gap-polyfill';
Here is the error -
Does anyone know how I can fix this issue? Is there any specific settings I need to do on next js?