我想啓動託德座右銘的1.5教程,但添加所有的依賴關係和運行npm安裝後,運行npm啓動給我一個需求是在瀏覽器中沒有定義錯誤?誰能告訴我什麼是錯的?需求未定義?託德座右銘1.5入門教程
種子項目可以在這裏找到: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
這不起作用,因爲該文件也需要大量其他模塊和文件。 –
那麼它會工作,因爲我自己只是克隆你給我的東西,並添加了這些線,它的工作原理,但就像我說你需要與Todd解決這個問題, – Majid
當運行npm start時,我看到hello world和firebase error雖然檢查控制檯仍然顯示需求未定義。 –