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

[taro-2.0.1][ERRO] 构建错误 Module build failed #5379

Closed
jiongrui opened this issue Jan 21, 2020 · 4 comments
Closed

[taro-2.0.1][ERRO] 构建错误 Module build failed #5379

jiongrui opened this issue Jan 21, 2020 · 4 comments
Assignees

Comments

@jiongrui
Copy link

问题描述

构建项目代码报错

复现步骤

yarn dev:quickapp

期望行为

能正常构建

报错信息

[ERRO] 构建错误 Module build failed (from ./node_modules/@hap-toolkit/dsl-xvm/lib/loader/style-loader.js):
Error: ENOENT: no such file or directory, open '/Users/cai/Documents/code/pepc-mp/dist/quickapp/src/npm/@tarojs/components-qa/src/common/css/common.css'
at Object.openSync (fs.js:448:3)
at Object.readFileSync (fs.js:348:35)
at n.length.n.forEach.e (/Users/cai/Documents/code/pepc-mp/dist/quickapp/node_modules/@hap-toolkit/compiler/lib/style/process.js:1:1536)
at Array.forEach ()
at processImport (/Users/cai/Documents/code/pepc-mp/dist/quickapp/node_modules/@hap-toolkit/compiler/lib/style/process.js:1:1412)
at Object.parse (/Users/cai/Documents/code/pepc-mp/dist/quickapp/node_modules/@hap-toolkit/compiler/lib/style/index.js:1:597)
at parseStyle (/Users/cai/Documents/code/pepc-mp/dist/quickapp/node_modules/@hap-toolkit/compiler/lib/index.js:1:1776)
at Object.module.exports (/Users/cai/Documents/code/pepc-mp/dist/quickapp/node_modules/@hap-toolkit/dsl-xvm/lib/loader/style-loader.js:1:665)

系统信息

Taro v1.3.13

Taro CLI 1.3.13 environment info:
System:
OS: macOS 10.14.6
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.15.0 - ~/.nvm/versions/node/v11.15.0/bin/node
Yarn: 1.21.1 - ~/.nvm/versions/node/v11.15.0/bin/yarn
npm: 6.7.0 - ~/.nvm/versions/node/v11.15.0/bin/npm
npmPackages:
@tarojs/components: 1.3.14 => 1.3.14
@tarojs/components-qa: ^2.0.1 => 2.0.1
@tarojs/plugin-babel: 1.3.14 => 1.3.14
@tarojs/plugin-csso: 1.3.14 => 1.3.14
@tarojs/plugin-sass: 1.3.14 => 1.3.14
@tarojs/plugin-uglifyjs: 1.3.14 => 1.3.14
@tarojs/router: 1.3.14 => 1.3.14
@tarojs/taro: ^2.0.1 => 2.0.1
@tarojs/taro-alipay: 1.3.14 => 1.3.14
@tarojs/taro-h5: 1.3.14 => 1.3.14
@tarojs/taro-qq: 1.3.14 => 1.3.14
@tarojs/taro-quickapp: 1.3.14 => 1.3.14
@tarojs/taro-swan: 1.3.14 => 1.3.14
@tarojs/taro-tt: 1.3.14 => 1.3.14
@tarojs/taro-weapp: 1.3.14 => 1.3.14
@tarojs/webpack-runner: 1.3.14 => 1.3.14
eslint-config-taro: 1.3.14 => 1.3.14
eslint-plugin-taro: 1.3.14 => 1.3.14
nerv-devtools: ^1.4.0 => 1.5.6
nervjs: ^1.4.0 => 1.5.6
stylelint-config-taro-rn: 1.3.14 => 1.3.14
stylelint-taro-rn: 1.3.14 => 1.3.14

@taro-bot
Copy link

taro-bot bot commented Jan 21, 2020

CC @luckyadam

@taro-bot
Copy link

taro-bot bot commented Jan 21, 2020

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@luckyadam
Copy link
Member

luckyadam commented Jan 21, 2020

cli 与项目依赖版本保持一致,你这里 @tarojs/components-qa 版本都 2.0.1 了

@jiongrui
Copy link
Author

cli 与项目依赖版本保持一致,你这里 @tarojs/components-qa 版本都 2.0.1 了

好的。试了一下,解决了,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants