-
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
最新3.5.5版本 加了set NODE_ENV=production 后启动失败 #12509
Comments
taro-bot2
bot
added
F-react
Framework - React
T-weapp
Target - 编译到微信小程序
V-3
Version - 3.x
labels
Sep 18, 2022
@hlbj105 有试过 3.5.4 可以么? |
刚才试了下,还是这样 |
我这边 Mac 试了没问题,或者你可以提供一下完整 demo |
Demo https://github.com/hlbj105/taro-error-demo |
还真是windows的问题,刚才在wsl里试了下,能正常跑,Linux下是没问题的(Linux下使用的环境变量设置是: |
taro build --type weapp --watch --env production |
这样可以,谢谢 @TheKonka |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
小程序基础库: 2.26.0
使用框架: React
复现步骤
使用taro init myApp初始化,选择React,sass,ts,默认模板,GitHub源模板,
在package.json中添加一行:
"dev:weapp:build": "set NODE_ENV=production && taro build --type weapp --watch",
期望结果
期望能正常启动
实际结果
ELIFECYCLE Command failed with exit code 1.
环境信息
The text was updated successfully, but these errors were encountered: