-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
error: node_modules/@tarojs/rn-supporter/dist/empty-module.js: Cannot use import statement outside a module #12618
Comments
补充说明 |
一般为代码写法问题 |
经验证, |
可以提供下,可复现demo |
https://github.com/StarlightUnion/demos/tree/main/taro-error-demo
|
包含私有包,无法安装成功 |
稍等,我处理一下 |
OK了,麻烦重新拉一下 |
存在几个问题
|
感谢,这就试试👍👍👍 |
相关平台
React Native
使用框架: React
复现步骤
1 启动
yarn dev:rn --qr
,启动未报错2.使用Taro Playground扫码在手机上运行
3.报错:
error: node_modules/@tarojs/rn-supporter/dist/empty-module.js: Cannot use import statement outside a module
期望结果
成功在手机上运行
实际结果
报错闪退
环境信息
The text was updated successfully, but these errors were encountered: