JavaScript frameworks and meta-frameworks such as Next.js or Nuxt.js are everywhere. Working with them locally is astonishingly easy; all you need is Node.js and a package manager.
If you’re using the latest version of Node.js, chances are good that you’ve run into the same bug as I have, and it appeared whenever I launched the development server: “ExperimentalWarning: CommonJS module using require().” Here’s the reason why it pops up and two ways to fix it.
(more…)