FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
I tried putting commonJS in a .mjs file heres what happens
NewsWeb Development

I tried putting commonJS in a .mjs file heres what happens

via Dev.to WebdevBeey3w ago

Table of contents What I did The twist What happened What I did I tried running this commonJS in VS code but with a twist: const vscode = require ( ' vscode ' ); The twist The twist.. I put this in a .mjs file this is not for commonJS its for ES modules. What happened Nothing serious happened, The only thing that happened was me being told it was a commonJS module and it can be switched to a ES module .

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
23 views

Related Articles

C Advanced 2: Take Your C Programming Skills to the Next Level
News

C Advanced 2: Take Your C Programming Skills to the Next Level

Medium Programming • 2d ago

News

Best offer Buy Now limited Time 🫴

Dev.to Beginners • 2d ago

News

After 40 years, arbitrary code execution has been achieved in Super Mario Bros

Lobsters • 2d ago

DSTs Are Just Polymorphically Compiled Generics
News

DSTs Are Just Polymorphically Compiled Generics

Lobsters • 2d ago

From Missed Birthdays to Automation: How I Built a Bot That Designs and Sends Birthday Cards
News

From Missed Birthdays to Automation: How I Built a Bot That Designs and Sends Birthday Cards

Medium Programming • 2d ago

Discover More Articles