If you have enabled ES modules in Node.js or using ES modules through a module bundler like Webpack, you'll no longer have access to many variables compared to CommonJS.
This error means that you are trying to use the import statement in a file that is treated as a CommonJS module by Node.js. There are a few ways to fix this error, depending on your preferences and project setup.
Static imports in JavaScript are declarations that allow importing read-only live bindings which are exported by another module, evaluated at load time, and follow a specific syntax.