You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After update GOT library to version 12.0.0 I've got an error:
Error: Must use import to load ES Module: .../node_modules/got/dist/source/index.js
require() of ES modules is not supported.
require() of .../node_modules/got/dist/source/index.js from .../CompaniesPage.ts is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from .../node_modules/got/package.json.
Node.js version: v14.18.2
OS & version: MacOS Monterey 12.0.1 (21A559)
Actually, I'm using proper import and don't realize where the problem is
importgotfrom"got";
The text was updated successfully, but these errors were encountered:
After update GOT library to version 12.0.0 I've got an error:
Actually, I'm using proper import and don't realize where the problem is
The text was updated successfully, but these errors were encountered: