作者:瘦哆哆和胖大雄 | 来源:互联网 | 2023-05-18 13:39
IamtryingtostartToddmottosangular1.5tutorialbutafteraddingallthedependenciesandrun
I am trying to start Todd motto's angular 1.5 tutorial but after adding all the dependencies and running npm install, running npm start gives me a require is not defined error in the browser? can anyone tell me what is wrong?
我正在尝试启动Todd座右铭的1.5角度教程,但在添加所有依赖项并运行npm install之后,运行npm start会在浏览器中给出一个require is not defined error?任何人都可以告诉我有什么问题?
The seed project can be found here: https://github.com/toddmotto/ultimate-angular-master-seed
种子项目可以在这里找到: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
2 个解决方案