【发布时间】:2016-09-17 00:27:34
【问题描述】:
我正在尝试启动 Todd 座右铭的 Angular 1.5 教程,但在添加所有依赖项并运行 npm install 后,运行 npm start 会在浏览器中出现 require is not defined 错误?谁能告诉我怎么了?
种子项目可以在这里找到:https://github.com/toddmotto/ultimate-angular-master-seed
vendor.js:39766 Uncaught ReferenceError: require is not defined
vendor.js:4640 Uncaught Error: [$injector:modulerr] Failed to instantiate module root due to:
Error: [$injector:modulerr] Failed to instantiate module components due to:
Error: [$injector:modulerr] Failed to instantiate module components.auth due to:
Error: [$injector:modulerr] Failed to instantiate module firebase due to:
Error: [$injector:nomod] Module 'firebase' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.5.8/$injector/nomod?p0=firebase
【问题讨论】:
标签: javascript angularjs gulp babeljs