-
Notifications
You must be signed in to change notification settings - Fork 1.2k
grunt serve:dist gets Error: [$compile:multidir] #1799
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
Comments
Is this directly after generating, or have you changed things? |
Just after generating. |
Think you can dump your |
Hi @Awk34 I have reinstalled the generator with the last updates and generated a new project with the same configuration above. After executing grunt to build the app a make a preview of the built app it look right. The only thing I got was the errors bellow related with typescript when making the built. Is it normal?
. |
Yes, these should all just be type errors from the TS compiler. As of right now, the TS and JS files are the same, just with different extensions. Adding the proper types is on my todo list. |
Why did you not include the proper types? The project doesn't work without them!!! |
@ksarpash It is in progress. The project does work without them, though; you just get warnings. |
@Awk34 I have the same "Warning": client\app\account\login\login.controller.ts(5,10): error TS2339: Property 'user' does not exist on type 'LoginController'. Looking forward for the new version. |
See #2025 |
The temlate project works fine when I execute grunt serve, but when I build the application executing build and for a preview grunt serve:dist I get the next errors:
Error: [$compile:multidir] Multiple directives [navbar (module: iotfs15App), navbar (module: iotfs15App)] asking for template on:
http://errors.angularjs.org/1.5.3/$compile/multidir?p0=navbar&p1=%20(module…5App)&p2=navbar&p3=%20(module%3A%20iotfs15App)&p4=template&p5=%3Cnavbar%3E
at vendor.3a42d300.js:3
at fa (vendor.3a42d300.js:4)
at X (vendor.3a42d300.js:4)
at vendor.3a42d300.js:4
at h (vendor.3a42d300.js:5)
at vendor.3a42d300.js:5
at n.$eval (vendor.3a42d300.js:6)
at n.$digest (vendor.3a42d300.js:5)
at n.$apply (vendor.3a42d300.js:6)
at vendor.3a42d300.js:3
Error: [$compile:multidir] Multiple directives [footer (module: iotfs15App), footer (module:iotfs15App)] asking for template on:
http://errors.angularjs.org/1.5.3/$compile/multidir?p0=footer&p1=%20(module…5App)&p2=footer&p3=%20(module%3A%20iotfs15App)&p4=template&p5=%3Cfooter%3Eat vendor.3a42d300.js:3
at fa (vendor.3a42d300.js:4)
at X (vendor.3a42d300.js:4)
at vendor.3a42d300.js:4
at h (vendor.3a42d300.js:5)
at vendor.3a42d300.js:5
at n.$eval (vendor.3a42d300.js:6)
at n.$digest (vendor.3a42d300.js:5)
at n.$apply (vendor.3a42d300.js:6)
at vendor.3a42d300.js:3
Error: [$compile:multidir] Multiple directives [main, main] asking for template on:
http://errors.angularjs.org/1.5.3/$compile/multidir?p0=main&p1=&p2=main&p3=&p4=template&p5=%3Cmain%20class%3D%22ng-scope%22%3Eat vendor.3a42d300.js:3
at fa (vendor.3a42d300.js:4)
at X (vendor.3a42d300.js:4)
at vendor.3a42d300.js:4
at h (vendor.3a42d300.js:5)
at vendor.3a42d300.js:5
at n.$eval (vendor.3a42d300.js:6)
at n.$digest (vendor.3a42d300.js:5)
at n.$apply (vendor.3a42d300.js:6)
at vendor.3a42d300.js:3
Thanks
The text was updated successfully, but these errors were encountered: