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

在windows下AppWorks 新建一个项目启动就报错 #998

Closed
ZYuanCheng opened this issue Apr 12, 2022 · 10 comments
Closed

在windows下AppWorks 新建一个项目启动就报错 #998

ZYuanCheng opened this issue Apr 12, 2022 · 10 comments
Labels
bug Something isn't working

Comments

@ZYuanCheng
Copy link

插件名/Extension:

您的本地环境信息/Your local environment information

  • 操作系统及其版本/System and Version:
  • Node version: v14.18.0
  • npm version: 6.14.15

您遇到的问题及复现步骤/What are your problems and how to reproduce them

在windows下AppWorks 新建一个项目启动就报错
报错如下:Uncaught SyntaxError: The requested module '/node_modules/react/index.js' does not provide an export named 'Component' (at index.tsx:6:1)

您期待的正确结果/The right result you're looking forward to

@ZYuanCheng ZYuanCheng added the bug Something isn't working label Apr 12, 2022
@luhc228
Copy link
Contributor

luhc228 commented Apr 12, 2022

看着跟 AppWorks 插件无关?应该是模板的问题?

你用的哪个模板?

@ZYuanCheng
Copy link
Author

image
我选择的是这个,其他的我没有试,你们自己可以测试一下

@imsobear
Copy link
Contributor

没法复现,可以把初始化好的项目提交到 GitHub,我们试一下。

@ZYuanCheng
Copy link
Author

image
我昨天启动报错,今天一直加载不出来

@ZYuanCheng
Copy link
Author

ZYuanCheng commented Apr 13, 2022

@imsobear
Copy link
Contributor

@ZYuanCheng 我本地的确没问题,试着重装依赖看看?

image

@ZYuanCheng
Copy link
Author

@imsobear 我是在window10 机器上运行的不行
windows开发环境:
node 14.18.0
npm 6.14.15
我在linux上也不行,也报同样的问题
image
linux开发环境:
node 14.18.0
npm 6.14.15

@imsobear
Copy link
Contributor

alibaba-fusion/materials#134 (comment) 试一下

@ZYuanCheng
Copy link
Author

@imsobear 这样设置可以,希望修复一下,谢谢!

@imsobear
Copy link
Contributor

社区第三方依赖的问题,我们不太好修,我们看下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants