Yummygum / react-flagpack

Flagpack contains 250+ flag icons to easily use within your code project.
https://flagpack.xyz
MIT License
136 stars 28 forks source link

2.0.2 NextJS Webpack Warnings #73

Closed daveycodez closed 4 months ago

daveycodez commented 4 months ago
(1:1443) autoprefixer: Gradient has outdated direction syntax. New syntax is like `closest-side at 0 0` instead of `0 0, closest-side`.

Import trace for requested module:
./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[6].oneOf[14].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[6].oneOf[14].use[2]!./node_modules/react-flagpack/dist/style.css
./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[6].oneOf[14].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[6].oneOf[14].use[2]!./src/styles/global.css
./src/styles/global.css
 GET /_next/static/webpack/39765502d0490197.webpack.hot-update.json 404 in 3402ms
 ⚠ Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/messages/fast-refresh-reload
 GET / 200 in 4002ms
 GET / 200 in 30ms
<w> [webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'Compilation/modules|/Users/david/Developer/Ink-Wizard/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[6].oneOf[14].use[1]!/Users/david/Developer/Ink-Wizard/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[6].oneOf[14].use[2]!/Users/david/Developer/Ink-Wizard/node_modules/react-flagpack/dist/style.css': No serializer registered for Warning
<w> while serializing webpack/lib/cache/PackFileCacheStrategy.PackContentItems -> webpack/lib/NormalModule -> Array { 1 items } -> webpack/lib/ModuleWarning -> Warning

I had to manually execute npm run postinstall to get it to create the flags folder in my public folder, but then it said it required "meow" module so I installed meow as well. It's all working but now I'm getting the above warnings when I run dev. Might want to autoinclude meow dependency and update instructions to create the flags folder manually for development in NextJS

zoeyfrisart commented 4 months ago

Hi there, Thanks for bringing this to our attention; we've added some notes to the README about post-install issues. We've also updated the dependencies so meow gets auto included from now on.

Happy to help if you run into any further issues @LeakedDave