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

快应用编译报错 #7401

Closed
wayung opened this issue Aug 21, 2020 · 0 comments
Closed

快应用编译报错 #7401

wayung opened this issue Aug 21, 2020 · 0 comments
Labels
F-react Framework - React T-quickapp Target - 编译到快应用 V-2 Version - 2.x

Comments

@wayung
Copy link

wayung commented Aug 21, 2020

相关平台

快应用

小程序基础库: 3.3.0
使用框架: React

复现步骤

Taro编译快应用报错

期望结果

能正常运行

实际结果

ERROR in ./src/npm/@tarojs/components-qa/src/components/taro-button/index.ux?uxType=comp (D:/projects/ReadFront/node_modules/@hap-toolkit/dsl-xvm/lib/loaders/style-loader.js?index=0&type=style!D:/projects/ReadFront/node_modules/@hap-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=style!./src/npm/@tarojs/components-qa/src/components/taro-button/index.ux?uxType=comp)
Module build failed (from D:/projects/ReadFront/node_modules/@hap-toolkit/dsl-xvm/lib/loaders/style-loader.js):
Error: ENOENT: no such file or directory, open 'D:\projects\ReadFront\dist\quickapp\src\npm@tarojs\components-qa\src\common\css\common.css'
at Object.openSync (fs.js:443:3)
at Object.readFileSync (fs.js:343:35)
at r.length.r.forEach.e (D:\projects\ReadFront\node_modules@hap-toolkit\compiler\lib\style\process.js:1:1536)
at Array.forEach ()
at processImport (D:\projects\ReadFront\node_modules@hap-toolkit\compiler\lib\style\process.js:1:1412)
at Object.parse (D:\projects\ReadFront\node_modules@hap-toolkit\compiler\lib\style\index.js:1:597)
at parseStyle (D:\projects\ReadFront\node_modules@hap-toolkit\compiler\lib\index.js:1:1902)
at Object.module.exports (D:\projects\ReadFront\node_modules@hap-toolkit\dsl-xvm\lib\loaders\style-loader.js:1:682)

环境信息

 Taro v2.1.5


 Taro CLI 2.1.5 environment info:
   System:
     OS: Windows 7
   Binaries:
     Node: 10.16.3 - D:\soft\nodejs\node.EXE
     Yarn: 1.13.0 - D:\soft\Yarn\bin\yarn.CMD
     npm: 6.9.0 - D:\soft\nodejs\npm.CMD

补充信息

上面不能正确选择Taro版本号,我当前使用的是1.3.3

之前编译都不能通过,后来我安装了下面这个依赖
"hap-toolkit": "^0.7.4"

@taro-bot2 taro-bot2 bot added F-react Framework - React T-quickapp Target - 编译到快应用 V-2 Version - 2.x labels Aug 21, 2020
@wayung wayung closed this as completed Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-quickapp Target - 编译到快应用 V-2 Version - 2.x
Projects
None yet
Development

No branches or pull requests

1 participant