【问题标题】:why meteor npm install --save angular-ui-grid dont work?为什么流星 npm install --save angular-ui-grid 不起作用?
【发布时间】:2017-06-22 05:29:51
【问题描述】:

我有一个非常大的问题,使用meteor npm install,我使用:

  • 流星角
  • 流星

我尝试导入ui-grid,例如uiRouterangularUBoostrap(如图所示)。但是是不可能的。我不是第一次尝试导入由 'meteor npm install' 安装的一些包,有时好,有时错误。 为什么?我该如何解决这个问题?拜托,我真的,真的,真的我需要用'meteor npm install'安装uiGrid 请帮忙!

这是导航器控制台中的整个消息错误:

modules.js?hash=b73ee78…:3830 Uncaught Error: [$injector:modulerr] Failed to instantiate module ageApp due to:
Error: [$injector:modulerr] Failed to instantiate module {} due to:
Error: [ng:areq] Argument 'module' is not a function, got Object
http://errors.angularjs.org/1.5.8/ng/areq?p0=module&p1=not%20a%20function%2C%20got%20Object
    at http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:3830:12
    at assertArg (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:5654:11)
    at assertArgFn (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:5664:3)
    at http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8388:11
    at forEach (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:4083:20)
    at loadModules (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8363:5)
    at http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8380:40
    at forEach (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:4083:20)
    at loadModules (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8363:5)
    at createInjector (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8285:19)
http://errors.angularjs.org/1.5.8/$injector/modulerr?p0=%7B%7D&p1=Error%3A%20%5Bng%3Aareq%5D%20Argument%20'module'%20is%20not%20a%20function%2C%20got%20Object%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.8%2Fng%2Fareq%3Fp0%3Dmodule%26p1%3Dnot%2520a%2520function%252C%2520got%2520Object%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A3830%3A12%0A%20%20%20%20at%20assertArg%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A5654%3A11)%0A%20%20%20%20at%20assertArgFn%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A5664%3A3)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8388%3A11%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A4083%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8363%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8380%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A4083%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8363%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8285%3A19)
    at http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:3830:12
    at http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8402:15
    at forEach (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:4083:20)
    at loadModules (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8363:5)
    at http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8380:40
    at forEach (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:4083:20)
    at loadModules (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8363:5)
    at createInjector (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8285:19)
    at doBootstrap (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:5520:20)
    at bootstrap (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:5541:12)
http://errors.angularjs.org/1.5.8/$injector/modulerr?p0=ageApp&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20Failed%20to%20instantiate%20module%20%7B%7D%20due%20to%3A%0AError%3A%20%5Bng%3Aareq%5D%20Argument%20'module'%20is%20not%20a%20function%2C%20got%20Object%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.8%2Fng%2Fareq%3Fp0%3Dmodule%26p1%3Dnot%2520a%2520function%252C%2520got%2520Object%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A3830%3A12%0A%20%20%20%20at%20assertArg%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A5654%3A11)%0A%20%20%20%20at%20assertArgFn%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A5664%3A3)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8388%3A11%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A4083%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8363%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8380%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A4083%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8363%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8285%3A19)%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.8%2F%24injector%2Fmodulerr%3Fp0%3D%257B%257D%26p1%3DError%253A%2520%255Bng%253Aareq%255D%2520Argument%2520'module'%2520is%2520not%2520a%2520function%252C%2520got%2520Object%250Ahttp%253A%252F%252Ferrors.angularjs.org%252F1.5.8%252Fng%252Fareq%253Fp0%253Dmodule%2526p1%253Dnot%252520a%252520function%25252C%252520got%252520Object%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A3830%253A12%250A%2520%2520%2520%2520at%2520assertArg%2520(http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A5654%253A11)%250A%2520%2520%2520%2520at%2520assertArgFn%2520(http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A5664%253A3)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A8388%253A11%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A4083%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A8363%253A5)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A8380%253A40%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A4083%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A8363%253A5)%250A%2520%2520%2520%2520at%2520createInjector%2520(http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A8285%253A19)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A3830%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8402%3A15%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A4083%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8363%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8380%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A4083%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8363%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8285%3A19)%0A%20%20%20%20at%20doBootstrap%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A5520%3A20)%0A%20%20%20%20at%20bootstrap%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A5541%3A12)
    at http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:3830:12
    at assertArg (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:5654:11)
    at assertArgFn (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:5664:3)
    at http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8388:11
    at forEach (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:4083:20)
    at loadModules (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8363:5)
    at http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8380:40
    at forEach (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:4083:20)
    at loadModules (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8363:5)
    at createInjector (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8285:19)
http://errors.angularjs.org/1.5.8/$injector/modulerr?p0=%7B%7D&p1=Error%3A%20%5Bng%3Aareq%5D%20Argument%20'module'%20is%20not%20a%20function%2C%20got%20Object%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.8%2Fng%2Fareq%3Fp0%3Dmodule%26p1%3Dnot%2520a%2520function%252C%2520got%2520Object%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A3830%3A12%0A%20%20%20%20at%20assertArg%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A5654%3A11)%0A%20%20%20%20at%20assertArgFn%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A5664%3A3)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8388%3A11%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A4083%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8363%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8380%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A4083%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8363%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8285%3A19)
    at http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:3830:12
    at http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8402:15
    at forEach (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:4083:20)
    at loadModules (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8363:5)
    at http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8380:40
    at forEach (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:4083:20)
    at loadModules (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8363:5)
    at createInjector (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8285:19)
    at doBootstrap (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:5520:20)
    at bootstrap (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:5541:12)
http://errors.angularjs.org/1.5.8/$injector/modulerr?p0=ageApp&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20Failed%20to%20instantiate%20module%20%7B%7D%20due%20to%3A%0AError%3A%20%5Bng%3Aareq%5D%20Argument%20'module'%20is%20not%20a%20function%2C%20got%20Object%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.8%2Fng%2Fareq%3Fp0%3Dmodule%26p1%3Dnot%2520a%2520function%252C%2520got%2520Object%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A3830%3A12%0A%20%20%20%20at%20assertArg%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A5654%3A11)%0A%20%20%20%20at%20assertArgFn%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A5664%3A3)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8388%3A11%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A4083%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8363%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8380%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A4083%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8363%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8285%3A19)%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.8%2F%24injector%2Fmodulerr%3Fp0%3D%257B%257D%26p1%3DError%253A%2520%255Bng%253Aareq%255D%2520Argument%2520'module'%2520is%2520not%2520a%2520function%252C%2520got%2520Object%250Ahttp%253A%252F%252Ferrors.angularjs.org%252F1.5.8%252Fng%252Fareq%253Fp0%253Dmodule%2526p1%253Dnot%252520a%252520function%25252C%252520got%252520Object%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A3830%253A12%250A%2520%2520%2520%2520at%2520assertArg%2520(http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A5654%253A11)%250A%2520%2520%2520%2520at%2520assertArgFn%2520(http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A5664%253A3)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A8388%253A11%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A4083%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A8363%253A5)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A8380%253A40%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A4083%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A8363%253A5)%250A%2520%2520%2520%2520at%2520createInjector%2520(http%253A%252F%252Flocalhost%253A3000%252Fpackages%252Fmodules.js%253Fhash%253Db73ee7873484799229a6d88f4293000c7ed10f7f%253A8285%253A19)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A3830%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8402%3A15%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A4083%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8363%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8380%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A4083%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8363%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A8285%3A19)%0A%20%20%20%20at%20doBootstrap%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A5520%3A20)%0A%20%20%20%20at%20bootstrap%20(http%3A%2F%2Flocalhost%3A3000%2Fpackages%2Fmodules.js%3Fhash%3Db73ee7873484799229a6d88f4293000c7ed10f7f%3A5541%3A12)
    at http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:3830:12
    at http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8402:15
    at forEach (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:4083:20)
    at loadModules (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8363:5)
    at createInjector (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:8285:19)
    at doBootstrap (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:5520:20)
    at bootstrap (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:5541:12)
    at angularInit (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:5426:5)
    at HTMLDocument.<anonymous> (http://localhost:3000/packages/modules.js?hash=b73ee7873484799229a6d88f4293000c7ed10f7f:35525:5)
    at fire (http://localhost:3000/packages/jquery.js?

【问题讨论】:

    标签: angularjs node.js meteor npm angular-meteor


    【解决方案1】:

    有时 Angular 模块表现不佳。如果模块没有导出正确的东西(即 Angular 模块的名称),它将中断。

    代替这段代码:

    export default angular.module('ageApp',[    
        angularMeteor,
        angularUBoostrap,
        uiRouter,
        uiGrid
    ])
    

    尝试使用 'ui.grid' 而不是 uiGrid,如下所示:

    export default angular.module('ageApp',[    
        angularMeteor,
        angularUBoostrap,
        uiRouter,
        'ui.grid'
    ])
    

    这不是什么大不了的事,但我自己在一些情况下不得不这样做。

    【讨论】:

    • 您好,感谢您的回答。我试图实施你的建议,但我没有好消息。同样的问题仍然存在。这是解决这个问题的另一种方法吗?再次感谢!
    • 你可以试试这个流星包atmospherejs.com/smrsoftware/angular-ui-grid
    • 是的,但实际上我已经安装了 v3.0.0。但我需要实际的 uiGrid 4.0.0 版本。
    • 对,这就是 Atmosphere 包的问题。您可以在本地包中进行升级
    • 感谢您的帮助。 ui-grid 修复问题。我用 $meteor npm install --save angular-ui-grid 重新安装了 ui-grid,现在可以使用了!安装的版本是4.0.2(正式版)再次感谢您的帮助!
    猜你喜欢
    • 2019-01-27
    • 2022-01-12
    • 1970-01-01
    • 1970-01-01
    • 2016-12-25
    • 2017-09-27
    • 2020-10-13
    • 2016-11-09
    • 2013-11-03
    相关资源
    最近更新 更多