-
Notifications
You must be signed in to change notification settings - Fork 820
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
Angular 6 Support #1384
Comments
Here for the comments |
Hi, Just tried to run my project, these are the related errors:
|
I solved my issues via installing as described https://github.com/ReactiveX/rxjs/blob/master/MIGRATION.md The agm maps breaks with RXJS 6 and it needs the compat module for backwards compatability |
I still have an issue with "snazzy-info-window" after the Angular 6 upgrade. And I also get this warning message: |
Be careful with the usage of @Epenance did a nice job updating the package to rxjs@6.1.0, but I think that before making it fully Angular6 compatible, need to check for any breaking changes. |
@ukon1990 the angular 6 switched to use webpack 4, which changed behavior while dynamic importing commonjs modules. I don't know why but snazzy-info-window directive is using dynamic import snazzy-info-window library, that's why there are one warning and broken snazzy-info-window directive. To fix it https://github.com/SebastianM/angular-google-maps/blob/1a74b3a9670cf4dbf442033a17dea290dfadc408/packages/snazzy-info-window/directives/snazzy-info-window.ts#L228 |
I'm pretty sure @SebastianM just needs to bump the packages one major version as Angular 6 breaks a lot of stuff in backwards compat. |
@Epenance yep, that's what I probably have to do, which is a little bit annoying because I have to manage two branches (because too less people will be on v6 any time soon). |
angular-google-maps works fine on v6 with rxjs-compat (except @iget-master remark), but snazzy-info-window directive is really broken right now. Maybe the simplest way is changing dynamic import to static. |
@SebastianM you can for now:
Everyone should be happy no? |
@SebastianM about two branches, there is also the not saying that's absolutely the way, just wanted to point out that another major library (in terms of monthly download) choosed such a path 😉 |
@jimmykane nope, as rxjs 6 is not compatible with angular 4/5. I think a have a solution...PR is coming |
@peterpeterparker I think it's reasonable to support the latest two version, which are now angular 5/6 and I found a backwards compatible way (that should even work with angular 4 for now but I will flag the next version with support for angular 5/6) - But happy to discuss it further |
@SebastianM no worries at all, just wanted to bring the info, I'm happy with any way since I already migrated my website to v6 😉 |
IMO, since the migration to Angular 6 is almost pain-less (at least on our projects), I see no reason for maintaining a version for 4 and 5. Just provide dangerous security fixes. |
@SebastianM really needs it to be upgraded natively |
Will we have an stable release for Angular 6 support? Working ok with rxjs-compat, but I'll like to remove it asap |
Hey..any update on this? |
Oh! I just upgrade to Angular 6 and I have the problem on Snazzy-info-window you are discussing: Error: Uncaught (in promise): TypeError: elems[0] is not a constructor Do you have any idea how to fix this? Thank you! |
@manuelsanchezaponte for now, the @john-hi solution works, change the line 130 to |
@LordShiroe are right that seems a quick fix. AGM is the last blocker to upgrade to v6. |
Thanks @SebastianM appreciate for the quick fix! working like a charm. 🥇 |
Whoa you're a fast tester :D glad it works 😅 |
@SebastianM thx a lot 👍 |
Issue description
Currently this package requires
@angular/common@^4.0.0 || ^5.0.0
and@angular/core@^4.0.0 || ^5.0.0
. I think that the changes are not so relevant, so probably the migration to support angular 6 is easy.The main issue that I've found is about the RxJS change to v6.0.0, where some modules changes the path, so we need to update it.
It also might need the release of a 2.0.0 version, since there are many breaking changes on package dependencies
The text was updated successfully, but these errors were encountered: