各位大神,我刚接手一个uni-app项目,但是因为自己从来没有做过这个类型项目,对平台不熟悉,前面的开发人员已经离职了,没有办法编译andriod成功,总是编译错误,不知道有没有大神可以指导一下,如果能帮忙的话也可以有偿帮忙,谢谢了,有意者联系我
我利用 npm run dev:app-android 进行编译, 错误信息大致如下
[vite:css] [postcss] C:/Users/admin/Desktop/Source/myapp/src/static/icons/editor-icon.css?url:1:1: Unknown word
file: C:/Users/admin/Desktop/Source/myapp/src/static/icons/editor-icon.css?url:1:1
at Input.error (C:\Users\admin\Desktop\Source\myapp\node_modules\postcss\lib\input.js:106:16)
at Parser.unknownWord (C:\Users\admin\Desktop\Source\myapp\node_modules\postcss\lib\parser.js:593:22)
at Parser.other (C:\Users\admin\Desktop\Source\myapp\node_modules\postcss\lib\parser.js:435:12)
at Parser.parse (C:\Users\admin\Desktop\Source\myapp\node_modules\postcss\lib\parser.js:470:16)
at parse (C:\Users\admin\Desktop\Source\myapp\node_modules\postcss\lib\parse.js:11:12)
at new LazyResult (C:\Users\admin\Desktop\Source\myapp\node_modules\postcss\lib\lazy-result.js:133:16)
at Processor.process (C:\Users\admin\Desktop\Source\myapp\node_modules\postcss\lib\processor.js:53:14)
at compileCSS (C:\Users\admin\Desktop\Source\myapp\node_modules\@dcloudio\uni-cli-shared\dist\vite\plugins\vitejs\plugins\css.js:470:14)
at async Object.transform (C:\Users\admin\Desktop\Source\myapp\node_modules\@dcloudio\uni-cli-shared\dist\vite\plugins\vitejs\plugins\css.js:147:51)
at async transform (file:///C:/Users/admin/Desktop/Source/myapp/node_modules/rollup/dist/es/shared/node-entry.js:19658:16) {
name: 'CssSyntaxError',
reason: 'Unknown word',
file: 'C:/Users/admin/Desktop/Source/myapp/src/static/icons/editor-icon.css?url',
source: 'export default "VITE_ASSET__bee59082"',
用HBuilder编译也不行,提示ERROR command "uni-build" does not exist.
17科技 (作者)
项目是前任开发留下的,说都配置好了,但是我就是编译不过,你能指导一下吗?
7 分钟前