gavinmcfarland / flex-gap-polyfill

A PostCSS plugin to emulate flex gap using margins
https://gavinmcfarland.github.io/flex-gap-polyfill/
Creative Commons Zero v1.0 Universal
143 stars 6 forks source link

Not working with NextJS 14 #91

Open mdesilva opened 2 months ago

mdesilva commented 2 months ago

I'm getting the error Error: Cannot find module 'flexGapPolyfill' in my NextJS app.

Here is my postCSS config file:

module.exports = {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
    'postcss-preset-env': {
      browsers: 'edge >= 18'
    },
    'flex-gap-polyfill': {},
  },
};
gavinmcfarland commented 1 month ago

Hmm. Strange. Just confirm. Have you checked the module is in your node_modules directory?

mdesilva commented 1 month ago

Yep, it's there.

gavinmcfarland commented 1 month ago

Hi, sorry for only getting around to checking this.

I installed a fresh version of NextJs 14 and installed flex-gap-polyfill; however, I can't reproduce the issue you're experiencing.

Do you have a repo you can share?