We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
H5
浏览器版本: chrome85 使用框架: React
https://taro-docs.jd.com/taro/docs/config-detail/#alias 按照以上流程配置alias,在ui组件中通过alias引用文件没有问题,但是在src/app.config中引用并使用,就会提示Cannot find module '@/xx'
app.config下引用也正常
Cannot find module '@/xx',服务直接起不来了
Taro CLI 3.0.11 environment info: System: OS: Windows 10 Binaries: Node: 12.18.4 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.5 - ~\AppData\Roaming\npm\yarn.CMD npm: 6.14.6 - C:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered:
确实没有支持在 *.config 里使用 alias
Sorry, something went wrong.
supported in #14825
No branches or pull requests
相关平台
H5
浏览器版本: chrome85
使用框架: React
复现步骤
https://taro-docs.jd.com/taro/docs/config-detail/#alias
按照以上流程配置alias,在ui组件中通过alias引用文件没有问题,但是在src/app.config中引用并使用,就会提示Cannot find module '@/xx'
期望结果
app.config下引用也正常
实际结果
Cannot find module '@/xx',服务直接起不来了
环境信息
The text was updated successfully, but these errors were encountered: