webpack报错

Hanger:wp2 Hanger$ webpack
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.output.path: The provided value "./dist/js" is not an absolute path!
阅读 4.7k
3 个回答

configuration.output.path: The provided value "./dist/js" is not an absolute path!

webpack配置中的output的路径不是绝对路径
自己改改或者贴上配置吧 - -

路径问题,改output

这段时间正好学到了建议你去看原网站吧webpack1和webpack2有区别的
const path = require('path');
path: path.resolve(__dirname, './bin'),
这样就可以了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题