食后一代缺少模块,约曼的角fullstack [英] Missing modules after fresh generation with Yeoman's angular-fullstack

查看:288
本文介绍了食后一代缺少模块,约曼的角fullstack的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

于是,我产生一个新的角度,fullstack与打字稿,MongoDB的,引导,引导用户界面,验证样板,Twitter和谷歌的OAuth,咕噜,茉莉,HTML,CSS和UI的路由器的设置。

So, I generated a fresh angular-fullstack with TypeScript, MongoDB, Bootstrap, Bootstrap UI, Authentication Boilerplate, Twitter and Google OAuth, Grunt, Jasmine, HTML, CSS, and UI-Router for the settings.

在我跑NPM安装和亭子安装。有一些不能满足的依赖,所以我安装

After I ran npm install and bower install. There were some unmet dependencies, so I installed


  • 打字稿,本地

  • 摸查,在当地

  • Tslint,本地

另外,我是在得到一个错误的构建的,是由安装解决
grunt-babel@5.0.0,在本地。

Also, I was getting an error during build that was resolved by installing grunt-babel@5.0.0, locally.

现在,当我运行咕噜服务这一切都工作得很好,除非我去管理页面在 HTTP: //本地主机:9000 /管理员。没有用户列表。相反,它说,删除用户和用户指数API路线仅限于与管理角色的用户。所有的导航栏上的链接都死了,除了应用程序的标题。

Now, when I run "grunt serve" It all works just fine, except when I go to the Admin page at http://localhost:9000/admin. There is no list of users. Instead it says, "The delete user and user index api routes are restricted to users with the 'admin' role." All of the links on the navigation bar are dead, except for the app title.

在这里输入的形象描述

当我检查控制台我得到这两个错误:

When I check the console I get these two errors:

未捕获的错误:[$喷油器:NOMOD]模块
  perfectAlgorithmDrillsApp.auth不可!你要么
  拼写错误的模块名称,或忘了加载它。如果注册一个
  模块确保您指定的依赖作为第二
  参数。

Uncaught Error: [$injector:nomod] Module 'perfectAlgorithmDrillsApp.auth' 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.

未捕获的错误:[$喷油器:NOMOD]模块
  perfectAlgorithmDrillsApp.admin不可!你要么
  拼写错误的模块名称,或忘了加载它。如果注册一个
  模块确保您指定的依赖作为第二
  参数。

Uncaught Error: [$injector:nomod] Module 'perfectAlgorithmDrillsApp.admin' 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.

我三重检查。他们没有拼写错误,它们被正确包含在模块依赖​​关系的列表。

I triple-checked. They are not misspelled and they are correctly included in the list of module dependencies.

更多错误,因为模块没有加载。很明显,它不能找到的控制器,因为不加载这些模块。

Further errors arise because the module isn't loaded. Obviously, it can't find the controllers, since those modules aren't loaded.

在这一点上,我没有添加或更改任何code。

我试过几件事情要解决这种情况:

I've tried a couple things to resolve the situation:


  • 更新哟和角fullstack,然后从头开始重新创建项目。

  • 在包装IFFE的那些失踪的模块。

  • 我更新的Node.js到最新版本LTS

更多细节:


  • 我在OSX埃尔卡皮坦10.11.2
  • 运行一切
  • 我运行的节点版本4.2.6,版本故宫12年2月14日,自耕农1.6.0

  • 在yo.rc文件它说,发电机的版本是3.3.0-beta.0

  • 我的mongod运行。

  • 我在做我的工作WebStorm,但我没用过那内置的东西。这一切都被命令行。

  • 打字稿被正确编译,因为.TMP目录看起来不错。

  • 我在已经安装了咕噜-CLI。

感谢这么多的帮助。让我知道如果你需要任何更多的细节。

Thanks so much for the help. Let me know if you need any more details.

推荐答案

我也有这种确切的问题。长的答案(加上一些其他的答案,你可能尚未或可能是有史以来询问的问题)是<一个href=\"http://stackoverflow.com/questions/35420082/missing-modules-after-generation-using-yeomans-generator-angular-fullstack/35467087#35467087\">here,但在短期,替换 VAR模块= / \\模块\\ $名为.js /; VAR模块= /[\\w/]+.module .TS $ /; 里面Gruntfile.js

I too had this exact problem. The long answer (plus some other answers to questions you might not be asking for yet or possibly ever) is here, but in short, replace var module = /\.module\.js$/; with var module = /[\w/]+.module.ts$/; inside Gruntfile.js.

如果还是不行,请尝试这里看到整个螺纹在这个问题上。

If that doesn't work, try going here to see the whole thread on this issue.

这篇关于食后一代缺少模块,约曼的角fullstack的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆