首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >进程未在redux的lite-server中定义。

进程未在redux的lite-server中定义。
EN

Stack Overflow用户
提问于 2016-08-23 20:35:22
回答 1查看 455关注 0票数 0

如果将SystemJS进程添加为依赖项,则在使用Range2RC.5中的默认配置时,lite-服务器抛出进程的错误不被定义为。有人经历过吗?下面是跟踪堆栈:

(index):43 Error: ReferenceError: process is not defined at Object.eval (http://localhost:3000/node_modules/redux/lib/index.js:38:5) at eval (http://localhost:3000/node_modules/redux/lib/index.js:47:4) at eval (http://localhost:3000/node_modules/redux/lib/index.js:48:3) at Object.eval (http://localhost:3000/node_modules/ng2-redux/lib/components/ng-redux.js:14:15) Evaluating http://localhost:3000/node_modules/redux/lib/index.js Evaluating http://localhost:3000/node_modules/ng2-redux/lib/components/ng-redux.js Evaluating http://localhost:3000/node_modules/ng2-redux/lib/index.js Evaluating http://localhost:3000/actions/session.actions.js Evaluating http://localhost:3000/app/app.component.js Evaluating http://localhost:3000/app/app.module.js Evaluating http://localhost:3000/app/main.js Error loading http://localhost:3000/app/main.js

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-08-24 02:06:23

对于堆栈溢出记录,重复我对github上相同问题的回答:https://github.com/angular-redux/ng2-redux/issues/202

尝试将其放入system.config.js中:

代码语言:javascript
复制
var map = {
  /* ... */
  'ng2-redux': 'node_modules/ng2-redux',
  'redux':     'node_modules/redux',
};

var packages = {
  /* ... */
  'ng2-redux': { main: 'lib/index.js', defaultExtension: 'js' },
  'redux':     { main: 'dist/redux.js', defaultExtension: 'js' },
};
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39110223

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档