Node Webpack Uncaught ReferenceError:未定义进程

时间:2016-06-28 19:01:54

标签: node.js reactjs webpack redux

我正在尝试使用redux和webpack创建一个同构反应应用程序。但我似乎遇到了这个错误。代码实际上指向firebase-node.js文件。我不知道为什么我会这样做。它与我的webpack配置有关吗?

http://pastebin.com/DJVbJK43

此处还有我的server.js,我正在尝试进行服务器端渲染:

http://pastebin.com/kfHSEHBB

我在Chrome控制台中收到此错误:

Uncaught ReferenceError: process is not defined(anonymous function) @ bundle.js:formatted:55185(anonymous function) @ bundle.js:formatted:55241(anonymous function) @ bundle.js:formatted:58721t @ bundle.js:formatted:10(anonymous function) @ bundle.js:formatted:14009t @ bundle.js:formatted:10(anonymous function) @ bundle.js:formatted:40521t @ bundle.js:formatted:10(anonymous function) @ bundle.js:formatted:40491t @ bundle.js:formatted:10(anonymous function) @ bundle.js:formatted:8852t @ bundle.js:formatted:10(anonymous function) @ bundle.js:formatted:44717t @ bundle.js:formatted:10(anonymous function) @ bundle.js:formatted:44689t @ bundle.js:formatted:10(anonymous function) @ bundle.js:formatted:44906t @ bundle.js:formatted:10(anonymous function) @ bundle.js:formatted:43284t @ bundle.js:formatted:10(anonymous function) @ bundle.js:formatted:29t @ bundle.js:formatted:10(anonymous function) @ bundle.js:formatted:18(anonymous function) @ bundle.js:formatted:19

格式化的代码

var Dc = new Qc;
        !function() {
            var e = process.version;
            if ("v0.10.22" === e || "v0.10.23" === e || "v0.10.24" === e) {
                var t = function(e, t, n) {
                    this.chunk = e,

0 个答案:

没有答案