美文网首页
weex-ui 使用报错Module build failed:

weex-ui 使用报错Module build failed:

作者: 拥抱月亮的大星星 | 来源:发表于2018-12-29 10:29 被阅读36次

    npm WARN babel-loader@6.4.1 requires a peer of webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc but none was installed.
    npm WARN babel-loader@6.4.1 requires a peer of babel-core@^6.0.0 but none was installed.
    npm WARN babel-loader@6.4.1 requires a peer of webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc but none was installed.

    • weex-ui@0.6.7
      updated 1 package in 15.489s
      lm-majinlideMacBook-Air:demo zhoucanweex-ui@0.6.7 bash: weex-ui@0.6.7: command not found lm-majinlideMacBook-Air:demo zhoucan npm i babel-preset-stage-0 babel-plugin-component -D
      npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none was installed.
      npm WARN babel-loader@6.4.1 requires a peer of babel-core@^6.0.0 but none was installed.
      npm WARN babel-loader@6.4.1 requires a peer of webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc but none was installed.
      npm WARN babel-loader@6.4.1 requires a peer of babel-core@^6.0.0 but none was installed.
      npm WARN babel-loader@6.4.1 requires a peer of webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc but none was installed.

    • babel-preset-stage-0@6.24.1

    • babel-plugin-component@1.1.1
      updated 2 packages in 19.887s
      lm-majinlideMacBook-Air:demo zhoucan$

    原因:
    babel 6,7混用,直接使用7即可

    npm install  babel-loader@7.0.0
    

    参考链接:
    https://blog.csdn.net/u010565037/article/details/82855218

    相关文章

      网友评论

          本文标题:weex-ui 使用报错Module build failed:

          本文链接:https://www.haomeiwen.com/subject/cnlulqtx.html