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

Uncaught ReferenceError: React is not defined #134

Closed
xileliu opened this issue Mar 30, 2020 · 3 comments
Closed

Uncaught ReferenceError: React is not defined #134

xileliu opened this issue Mar 30, 2020 · 3 comments
Assignees

Comments

@xileliu
Copy link

xileliu commented Mar 30, 2020

What happens?

基于umi 3.0
主应用配置:
image

子应用是create react app 创建的老项目:
启动的时候会报出来标题错误,看umi 3.0 api
image

我在子项目里创建了此文件
image

真不知道还需要怎么配置呢?
image
2.2的这个描述没太理解如何配置

A clear and concise description of what the bug is.

Mini Showcase Repository(REQUIRED)

Provide a mini GitHub repository which can reproduce the issue.

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

Context

  • qiankun Version:
  • Platform Version:
  • Browser Version:
@Deturium
Copy link
Contributor

2.2 是为了配 umi 的路由

给个复现仓库吧

@kuitos kuitos self-assigned this Apr 1, 2020
@kuitos kuitos transferred this issue from umijs/qiankun Apr 1, 2020
@xileliu
Copy link
Author

xileliu commented Apr 1, 2020

这个用create react app 脚手架生成应该好像就有这样的问题

@kuitos
Copy link
Member

kuitos commented Apr 6, 2020

create react app 子应用报错跟 umi 插件没关系吧。

先关了,如果还有问题可随时 reopen 并请提供复现仓库。

@kuitos kuitos closed this as completed Apr 6, 2020
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

3 participants