Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

缺陷:执行 jest 失败 #58

Open
liujinxing opened this issue Aug 20, 2021 · 1 comment
Open

缺陷:执行 jest 失败 #58

liujinxing opened this issue Aug 20, 2021 · 1 comment

Comments

@liujinxing
Copy link
Member

在 monorepo 根目录下执行单元测试时,报下面的错误:

The name `@sinoform/app-context` was looked up in the Haste module map. It cannot be resolved, because there exists several different files, or packages, that provide a module for that particular name and platform. The platform is generic (no extension). You must delete or exclude files until there remains only one of these:

    * `E:\workspace\sino-intellisense-form\packages\app-context\dist\package.json` (package)
    * `E:\workspace\sino-intellisense-form\packages\app-context\package.json` (package)
@liujinxing
Copy link
Member Author

jest-haste-map: Haste module naming collision: @sinoform/app-context
The following files share their name; please adjust your hasteImpl:
  * <rootDir>\packages\app-context\package.json
  * <rootDir>\packages\app-context\dist\package.json

jest-haste-map: Haste module naming collision: @sinoform/app-core
The following files share their name; please adjust your hasteImpl:
  * <rootDir>\packages\app-core\package.json
  * <rootDir>\packages\app-core\dist\package.json

jest-haste-map: Haste module naming collision: @sinoform/app-setting
The following files share their name; please adjust your hasteImpl:
  * <rootDir>\packages\app-setting\package.json
  * <rootDir>\packages\app-setting\dist\package.json

jest-haste-map: Haste module naming collision: @sinoform/app-template
The following files share their name; please adjust your hasteImpl:
  * <rootDir>\packages\app-template\package.json
  * <rootDir>\packages\app-template\dist\package.json

jest-haste-map: Haste module naming collision: @sinoform/bottom-button
The following files share their name; please adjust your hasteImpl:
  * <rootDir>\packages\bottom-button\package.json
  * <rootDir>\packages\bottom-button\dist\package.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant