Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is "File is a CommonJS module; it may be converted to an ES6 module" warning means? How to fix it? [closed]

I am getting this warning 'File is a CommonJS module; it may be converted to an ES6 module'on VS Code when I required Express. What is this mean and how to fix it? ? Here is screenshot of the warning

like image 880
veenaMSL Avatar asked Nov 29 '25 19:11

veenaMSL


1 Answers

There is an existing bug in vscode, you can follow it here

The only way you can disable this warning is by setting :

 "javascript.suggestionActions.enabled": false 

to your user settings

like image 188
Wisely D Cruizer Avatar answered Dec 01 '25 08:12

Wisely D Cruizer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!