Open
Description
Error [ERR_MODULE_NOT_FOUND]:
Cannot find module '/home/user/project/node_modules/@formatjs/cli-lib/lib_esnext/src/extract'
imported from /home/user/project/node_modules/@formatjs/cli-lib/lib_esnext/index.js
The package @formatjs/cli-lib
as of version 7.0.0 is an EcmaScript module because of the following configuration in package.json
:
"type": "module",
However, the mandatory .js
extensions are missing from the imported files. The package uses CommonJS naming convention where file extensions are optional in the require
d modules.