-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Can't get app to compile in a new Angular + Webpacker Application #2180
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
Well i have the same issue in the installation of angular with webpack in rails. I make a research for more than a month and i don't found nothing about it. So is a bug, or a line of code, i need to add some gem or add some plug in with yarn? i want to know how to set up this and work with angular and rails. |
@mayordwells @CyHunterX |
I have confirmed that @ayazhussein's suggestion works. For the people who want to know where to do this: app/javascript/your-angular-app/polyfills.ts What I want to know is, why was rails 6 released with this major problem? @dhh |
Sure, a PR would be more than welcome! Here is the last time that file was changed: #736
I personally don't use angular anymore, so I rely on the community to send in PRs since these 3rd party libraries change often. |
I have created a simple pull request, see #2286 I will also work on updating the example application to the new ways of using angular (e.g. support of templateUrl instead of just template). |
I think it's not relevant anymore, feel free to reopen if needed |
I have created a new Rails app and tried to add Angular to it but it fails to compile. I have tried different options from the documentation but I am getting the same error.
I have followed a few instructions from this issue - #2031
and followed the documentation from here - https://github.com/rails/webpacker/blob/master/docs/es6.md and here https://github.com/rails/webpacker#angular-with-typescript
But these did not fix anything. Installing Angular with Webpacker and starting the app is supposed to work by default, but it looks like the source of the problem is the new implementation of core-js. Any idea how to fix this?
I have pushed a demo app on github to demo this problem please take a look here - https://github.com/mayordwells/angular-webpacker-app
The text was updated successfully, but these errors were encountered: