有没有办法在使用webpack构建的节点项目中获得更好的错误消息?

时间:2018-01-13 21:35:23

标签: node.js reactjs webpack

我有一个react / redux / webpack项目,我想为服务器端渲染构建。当我运行它时,我收到一些错误消息,但他们都说webpack-internal:///95:951:4

之类的东西

示例输出:

ReferenceError: $ is not defined
    at Reducer.eval (webpack-internal:///95:951:4)
    at Object.eval [as dispatch] (webpack-internal:///207:11:18)
    at Actions.dispatch (webpack-internal:///203:52:21)
    at new OrderForm (webpack-internal:///168:65:12)
    at resolve (webpack-internal:///212:2100:14)
    at ReactDOMServerRenderer.render (webpack-internal:///212:2260:22)
    at ReactDOMServerRenderer.read (webpack-internal:///212:2234:19)
    at Object.renderToString (webpack-internal:///212:2501:25)
    at eval (webpack-internal:///173:50:40)
    at eval (webpack-internal:///173:60:6)

源文件名很简洁。

0 个答案:

没有答案