项目在HbuilderX1.4.1.20181228中编译失败,在1.4.1.20181224和1030可以成功编译。
模块编译失败:SyntaxError: Unexpected token %
15:27:46.570 at new Function (<anonymous>)
15:27:46.585 at getTestTemplate (G:\HBuilderX\plugins\uniapp\lib\preprocess\lib\preprocess.js:375:10)
15:27:46.601 at testPasses (G:\HBuilderX\plugins\uniapp\lib\preprocess\lib\preprocess.js:379:16)
15:27:46.601 at G:\HBuilderX\plugins\uniapp\lib\preprocess\lib\preprocess.js:174:18
15:27:46.601 at G:\HBuilderX\plugins\uniapp\lib\preprocess\lib\preprocess.js:326:22
15:27:46.601 at Array.reduce (<anonymous>)
15:27:46.616 at matchReplacePass (G:\HBuilderX\plugins\uniapp\lib\preprocess\lib\preprocess.js:313:20)
15:27:46.616 at replaceRecursive (G:\HBuilderX\plugins\uniapp\lib\preprocess\lib\preprocess.js:333:10)
15:27:46.616 at preprocessor (G:\HBuilderX\plugins\uniapp\lib\preprocess\lib\preprocess.js:168:10)
15:27:46.632 at Object.preprocess (G:\HBuilderX\plugins\uniapp\lib\preprocess\lib\preprocess.js:93:10)
15:27:46.632 at Object.module.exports (G:\HBuilderX\plugins\uniapp\lib\preprocessor-loader.js:10:35)
NEWcentos
- 发布:2019-01-02 15:32
- 更新:2019-01-03 11:19
- 阅读:1202
NEWcentos (作者)
使用了条件编译<!-- #ifdef APP-PLUS -->
<view class="status-contents" >
<view class="status top-view"></view>
</view>
<!-- #endif -->以及/ #ifdef APP-PLUS /
top: var(--status-bar-height);
/ #endif /
2019-01-03 11:17
Trust
回复 NEWcentos:去掉条件编译试试呢,尤其是 CSS 的。
2019-01-03 11:21
NEWcentos (作者)
删除所有的条件编译都还是报错 我测试过了
2019-01-04 22:19