Open alexsz2012 opened 5 years ago
没人解决吗?
我编译 wepy-weui-demo
报:
thirdScriptError
sdk uncaught third Error
module "npm/wepy/lib/native.js" is not defined
Error: module "npm/wepy/lib/native.js" is not defined
es6: 对应关闭ES6转ES5选项,关闭。 重要:未关闭会运行报错。
postcss: 对应关闭上传代码时样式自动补全选项,关闭。 重要:某些情况下漏掉此项也会运行报错。
minified: 对应关闭代码压缩上传选项,关闭。重要:开启后,会导致真机computed, props.sync 等等属性失效。(注:压缩功能可使用WePY提供的build指令代替,详见后文相关介绍以及Demo项目根目录中的wepy.config.js和package.json文件。)
urlCheck: 对应不检查安全域名选项,开启。 如果已配置好安全域名则建议关闭。
https://tencent.github.io/wepy/document.html#/
这里用了wepy,需要在开发者工具里进行设置。
[WARNING] 找不到编译器:wepy-compiler-less。 [Error] 未发现相关 less 编译器配置,请检查wepy.config.js文件。
我执行 npm run build 报上面的错,搞什么鬼
跑不通,问题不少
The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal,
@dashankeji npm install less
问题 一: 执行 cnpm install wepy-cli -g 报错: WARN node unsupported "node@v11.3.0" is incompatible with update-notifier@1.0.3 › latest-version@2.0.0 › package-json@2.4.0 › got@^5.0.0, expected node@>=0.10.0 <7 [25/30] update-notifier@^1.0.2 installed at node_modules_update-notifier@1.0.3@ update-notifier -- (node版本不兼容)
出现问题二 :
WARN node unsupported "node@v11.3.0" is incompatible with wepy-plugin-imagemin@1 .5.3 › imagemin-pngquant@5.1.0 › pngquant-bin@4.0.0 › bin-wrapper@3.0.2 › downlo ad@4.4.3 › got@^5.0.0, expected node@>=0.10.0 <7 WARN node unsupported "node@v11.3.0" is incompatible with eslint@>=4.18.2, expec ted node@^8.10.0 || ^10.13.0 || >=11.10.1 --(node版本不兼容) 依然直接忽略
执行 npm run build 问题三
接着执行 npm run build 最后问题成这样了
Unknown plugin "transform-class-properties" specified in "base" at 0, attempted to resolve relative to "D:\\projects\\wepy-mall"
上面这个不知道什么错误
按你步骤上的解释跑不前啊 问题列表