Skip to content

app.constants Issue #1879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Stalso opened this issue May 12, 2016 · 9 comments
Closed

app.constants Issue #1879

Stalso opened this issue May 12, 2016 · 9 comments

Comments

@Stalso
Copy link

Stalso commented May 12, 2016

Item Version
generator-angular-fullstack 3.6.1
Node 5.10.1
npm 3.8.3
Operating System Windows 8.1
Item Answer
Transpiler TypeScript
Markup Jade
CSS LESS
Router ui-router
Build Tool Gulp
Client Tests Jasmine
DB MongoDB
Auth Y

Hello. I have some issue with app.constants. When I call gulp serve this file is empty in .tmp folder and I get blank page with angular error, which says that angular cannot find app.constants module.

@elfouad
Copy link

elfouad commented May 13, 2016

hey,
in the gruntfile.js, there is a task called ngconstant. This task puts the content of server/config/environment/shared.js in your app/app.constant.js.
Maybe you delete the shared file ?

@Awk34
Copy link
Member

Awk34 commented May 13, 2016

Well, he scaffolded with Gulp, so it'd be the gulp constant and copy:constant tasks to look at. Make sure they're doing what they're supposed to.

@Stalso
Copy link
Author

Stalso commented May 14, 2016

No, I have not modified anything. I have generated project and fired gulp serve. By the way, sometimes it works. I can not figure out when it overwrites the file.

@yan-chen
Copy link

Mine too. Sometimes it shows the error, but it shows fine after re-starting gulp serve or refreshing the page.

@Awk34 Awk34 removed the needs reply label May 18, 2016
@HugoPoi
Copy link

HugoPoi commented May 29, 2016

I have the same issue with 3.6.1 generator, gulp/typescript/sass/ngRouter under Linux/node 6.1

@HugoPoi
Copy link

HugoPoi commented May 29, 2016

I think the task copy:constant cannot be launch // with the task constant

@Koslun
Copy link
Member

Koslun commented May 29, 2016

I think this relates to issue #1830, which was fixed and merged with version 3.7.0. See fix here: f07b451. It was part of this PR: #1836

@HugoPoi
Copy link

HugoPoi commented Jun 4, 2016

We can close this issue because commit f07b451 resolve the problem :-)

@Koslun
Copy link
Member

Koslun commented Jun 4, 2016

Just closing for now then.

@Koslun Koslun closed this as completed Jun 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants