-
SummaryGetting this error after the steps below. Is SWC part of Next.js / Vercel? Anyway... I got the information from some Next.js pages... Reference: I understand you have to add this code to next.config.js
Also, from this linked page:
then for minification I created a file at the root
^^^ How could I fix it? Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, The problem with running a tool like lighthouse is that it picks up on everything running in your current browser session, including extensions! If its often a good idea to run this in an incognito window, or, better yet using the lighthouse CLI. So to summarise, this is not an issue with your app, lighthouse is just picking on an an extension you have installed, and flagging that. For completeness sake, during build time Next.js already minifies your code, by using SWC, or Terser, by default, you don't have to worry about this. |
Beta Was this translation helpful? Give feedback.
-
Effing goodness... So I don't need to install anything from SWC? I just ran lighthouse from an incognito tab, and I don't see any of the minify CSS or JavaScript.. Still have other issues on some pages like reduce unused CSS and JavaScript.... but I am gonna be working on those coming up.. |
Beta Was this translation helpful? Give feedback.
Hi,
The problem with running a tool like lighthouse is that it picks up on everything running in your current browser session, including extensions!
If its often a good idea to run this in an incognito window, or, better yet using the lighthouse CLI.
So to summarise, this is not an issue with your app, lighthouse is just picking on an an extension you have installed, and flagging that.
For completeness sake, during build time Next.js already minifies your code, by using SWC, or Terser, by default, you don't have to worry about this.