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

Plugin user:node_modules/umi-plugin-react/lib/index.js initialize failed #3339

Closed
asevenm opened this issue Sep 29, 2019 · 7 comments
Closed

Comments

@asevenm
Copy link

asevenm commented Sep 29, 2019

What happens?

I got errors when executed umi dev or umi build.
Plugin user:node_modules/umi-plugin-react/lib/index.js initialize failed
Cannot find module '../ui/dist/index.umd'
error Command failed with exit code 1.

相关环境信息

  • Umi 版本: 2.6.8
  • Node 版本:10.15.3 or 8.14.0
  • 操作系统:Mac os
@sorrycc
Copy link
Member

sorrycc commented Sep 30, 2019

node_modules 和 yarn.lock 删了重装,有问题的 umi-plugin-react 版本已回退。

@xileliu
Copy link

xileliu commented Mar 5, 2020

@sorrycc 用最新的umijs 生成基础工程,但是移除node_modules yarn.lock 重新安装还是报这个错误

@gaomeng965
Copy link

我也报这个错,/node_modules/@umijs/plugin-qiankun/lib/index.js: api.describe is not a function (36, 7)

@chunbin1
Copy link
Contributor

chunbin1 commented May 9, 2020

我也报这个错,/node_modules/@umijs/plugin-qiankun/lib/index.js: api.describe is not a function (36, 7)
你是umi2吗 因为umi2的插件开发文档真的没有这个函数.... 我也遇到这个问题了

@TQ-Martin
Copy link

我也报这个错,/node_modules/@umijs/plugin-qiankun/lib/index.js: api.describe is not a function (36, 7)
你把@umijs/plugin-qiankun版本回退到1.5.5(官方实例用的这个版本,所以我就回退到这个版本),这个问题就解决了

@wsdqr001
Copy link

wsdqr001 commented Jun 8, 2020

我也报这个错,/node_modules/@umijs/plugin-qiankun/lib/index.js: api.describe is not a function (36, 7)
你把@umijs/plugin-qiankun版本回退到1.5.5(官方实例用的这个版本,所以我就回退到这个版本),这个问题就解决了
回退到1.5.5又爆了这个错:
error Plugin qiankun-slave initialize failed,api.modifyPublicPathStr is not a function

@liuxiuqian
Copy link

error Plugin qiankun-slave initialize failed,api.modifyPublicPathStr is n

你的这个错误解决了吗

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

8 participants