-
Notifications
You must be signed in to change notification settings - Fork 564
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
not working with Angular5 #364
Comments
Hello! This repo is outdated and so using code from here with a newer version of Angular will almost positively break with newer version of Angular - it hasn't been updated in favor of using Angular CLI. I would highly suggest using Angular CLI to create, serve, build, and add things to your application. It will bootstrap and take care of all the webpack, tooling, and best practices and let you just write your Angular app. Below is a simple overview of how you can get started in less than 5 minutes using the CLI:
Then, after you've got your project going, you can easily add new components, services, etc:
See the repository https://github.com/angular/angular-cli (linked above as well) for more information and better docs. |
Even I have moved to the angular-cli .. it's pretty sweet these days. |
Yeah, plus if you want to do "your own thing" you can still start out with the CLI and then just "eject" it so that you can manage your own stuff (I don't do this lol) |
Thanks for the reply to you guys. yes you people are correct its old one I created the new web.config.js file and then it worked fine. |
Hi tried to use the same file structure for angular 5. but somehow it is not working.
firstly the issue came with the html files for the components. I used this code:
@component({
selector: 'my-app', //
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
but it was saying the app.component.html is not found.
I searched a little bit and come across with some articles which was saying that we need to use relative path so I used this code after that:
@component({
selector: 'my-app', //
templateUrl: require('./app.component.html'),
styleUrls: [require('./app.component.scss')],
})
but now I am getting another error and the error is 👍
"Maximum call stack size exceeded"
description:
footer>
:11 ERROR RangeError: Maximum call stack size exceeded
at callWithDebugContext (core.js?593e:15046)
at Object.debugCreateComponentView [as createComponentView] (core.js?593e:14368)
at createViewNodes (core.js?593e:13690)
at callViewAction (core.js?593e:14159)
at execComponentViewsAction (core.js?593e:14068)
at createViewNodes (core.js?593e:13753)
at callViewAction (core.js?593e:14159)
at execComponentViewsAction (core.js?593e:14068)
at createViewNodes (core.js?593e:13753)
at callViewAction (core.js?593e:14159)
at execComponentViewsAction (core.js?593e:14068)
at createViewNodes (core.js?593e:13753)
at callViewAction (core.js?593e:14159)
at execComponentViewsAction (core.js?593e:14068)
at createViewNodes (core.js?593e:13753).......
please if you people can help me out on this.
repo for my code is : https://github.com/Donjay2101/Angualr5
thanks in advance
The text was updated successfully, but these errors were encountered: