apptools-lab / AppWorks

🐻 基于 VS Code 插件的前端研发工具集,站点国内镜像:https://apptools.gitee.io
https://appworks.site/
MIT License
996 stars 181 forks source link

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

Closed ZYuanCheng closed 2 years ago

ZYuanCheng commented 2 years ago

插件名/Extension:

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

您遇到的问题及复现步骤/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

luhc228 commented 2 years ago

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

你用的哪个模板?

ZYuanCheng commented 2 years ago

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

imsobear commented 2 years ago

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

ZYuanCheng commented 2 years ago

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

ZYuanCheng commented 2 years ago

image image https://github.com/ZYuanCheng/hello.git 下载地址

imsobear commented 2 years ago

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

image

ZYuanCheng commented 2 years ago

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

imsobear commented 2 years ago

https://github.com/alibaba-fusion/materials/issues/134#issuecomment-981590555 试一下

ZYuanCheng commented 2 years ago

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

imsobear commented 2 years ago

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