8000 @formatjs/cli-lib version 7.0.0 is broken · Issue #4764 · formatjs/formatjs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content < 8000 div data-target="react-partial.reactRoot">
@formatjs/cli-lib version 7.0.0 is broken #4764
Open
@aradzie

Description

@aradzie
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 required modules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0