zoukankan      html  css  js  c++  java
  • npm run dev 启动项目后,出现编译警告 Compiled with 2 warnings

    运行npm run dev 启动项目后,出现如下 Warning

    [2019-06-05T17:13:16.265] [INFO] - WARNING Compiled with 2 warnings
                  17:13:16
    [2019-06-05T17:13:16.265] [INFO] -
    [2019-06-05T17:13:16.268] [INFO] - warning in ./node_modules/es6-promise/dist/es6-promise.js
    [2019-06-05T17:13:16.268] [INFO] -
    [2019-06-05T17:13:16.269] [INFO] - There are multiple modules with names that only differ in casing.
    This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
    Use equal casing. Compare these module identifiers:
    * E:RAIS ais-project ode_moduleses6-promisedistes6-promise.js
    Used by 11 module(s), i. e.
    E:RAIS ais-project ode_modulesabel-polyfill ode_modules egenerator-runtime untime.js
    * e:RAIS ais-project ode_moduleses6-promisedistes6-promise.js
    Used by 1 module(s), i. e.
    e:RAIS ais-project ode_modules\_@ckeditor_ckeditor5-build-classic@12.1.0@@ckeditorckeditor5-build-classicuildckeditor.js
    [2019-06-05T17:13:16.269] [INFO] -
    [2019-06-05T17:13:16.270] [INFO] - warning in ./node_modules/process/browser.js
    [2019-06-05T17:13:16.270] [INFO] -
    [2019-06-05T17:13:16.271] [INFO] - There are multiple modules with names that only differ in casing.
    This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
    Use equal casing. Compare these module identifiers:
    * E:RAIS ais-project ode_modulesprocessrowser.js
    Used by 13 module(s), i. e.
    E:RAIS ais-project ode_modulesvue-localstoragedistvue-local-storage.js
    * e:RAIS ais-project ode_modulesprocessrowser.js
    Used by 1 module(s), i. e.
    e:RAIS ais-project ode_moduleses6-promisedistes6-promise.js

    问题原因:

    windows下盘符的大小写导致的。

    实际上,上面显示的警告,是指引用文件的时候大小写错了,有时候是盘符,有时候是引入文件的时候插件名

    我打开VS Code 在cmd里运行的时候,自动定位到项目地址,盘符是大写,改成小写的e盘符就没问题了。

    Be patient, and work hard!

  • 相关阅读:
    SQLSERVER 2008 R2导入XLSX文件错误,提示报错:The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. (System.Data)
    转-马斯洛需求层次理论
    邮件发送提示错误“0x800CCC0F”,并存留在发件箱
    WIN10系统JAVA环境配置
    转-简单了解Python装饰器实现原理
    set集合
    阿里云服务器地址及端口
    转:苹果手机同步阿里云邮箱日历
    官方:金蝶实际成本在制品分配详解
    官方:金蝶实际成本在制品材料分配详解
  • 原文地址:https://www.cnblogs.com/JasmineLily/p/10981051.html
Copyright © 2011-2022 走看看