稻草网

  1. 首页
  2. 技术
  3. 正文

It's no longer allowed to omit the '-loader' suffix when using loaders解决办法

2017年3月29日 7326点热度 1人点赞 4条评论

错误提示如下:

BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders.
                 You need to specify 'json-loader' instead of 'json',
                 see https://webpack.js.org/guides/migrating/#automatic-loader-module-name-extension-removed

Webpack新版本要求配置module中的loader不能缩写,也就是loader:"json-loader"中的-loader必须要写

类似的还有loader:"vue-loader"

标签: loader Webpack
最后更新:2017年6月8日

何 同学

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

  • 幸大大

    解决了。。感谢!

    2017年6月15日
    回复
    • flyer_H

      @幸大大 哈哈 能帮到你我也很高兴

      2017年6月19日
      回复
  • caipanlong

    感谢内楼主

    2017年7月24日
    回复
  • Louie

    感谢

    2017年8月10日
    回复
  • razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
    回复 幸大大 取消回复

    COPYRIGHT © 2025 稻草网. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang