lavaldi / lavaldi.com

Personal website
http://lavaldi.com
Other
4 stars 4 forks source link

Page doesn't build after bumping next version from '11.1.0' to '11.1.1' #54

Closed jelitter closed 2 years ago

jelitter commented 2 years ago

After running 'yarn dev', the following error is shown in console:

error - ./styles/global.css
Global CSS cannot be imported from files other than your Custom <App>. Due to the Global nature of stylesheets, and to avoid conflicts, Please move all first-party global CSS imports to pages/_app.js. Or convert the import to Component-Level CSS (CSS Modules).
Read more: https://nextjs.org/docs/messages/css-global
Location: pages\_app.js
lavaldi commented 2 years ago

Hey @jelitter, it's weird, I can't reproduce the mentioned error in the console

❯ yarn dev            
yarn run v1.22.10
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5

warn - You have enabled the JIT engine which is currently in preview.
warn - Preview features are not covered by semver, may introduce breaking changes, and can change at any time.
event - compiled successfully
event - build page: /
wait  - compiling...
event - compiled successfully
event - build page: /blog
wait  - compiling...
event - compiled successfully