Getting Error after Angular 2 RC6 update
See original GitHub issueHi - There seems to be some incompatibility with Angular 2 RC6 and NG2-Repsonsive package.
Here is the error that i am getting:
index.js:67Uncaught TypeError: core_1.provide is not a function
Its probably because of some of the deprecations such as this one:
Instead of PLATFORM_PIPES and PLATFORM_DIRECTIVES, provide platform directives/pipes via an @NgModule.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
SystemJs error after updating to Angular2 RC6 - Stack Overflow
I updated to RC6 (from RC5) and after using the example systemjs.config.js from angular quickstart I'm receiving the error (SystemJS) ...
Read more >rc6 update #1938 - angular/angular-cli - GitHub
Hi guys, when we can get rc6 generated project currently it generate rc4 which is quite old. The text was updated successfully, but...
Read more >Creating A Custom ErrorHandler In Angular 2 RC 6 - Ben Nadel
Ben Nadel uses custom error handling in Angular 2 as a means to explore RC 6 and the use of NgModule as the...
Read more >Updating Your Angular 2 App From RC4 to RC5
Update your Angular 2 app from RC4 to the new RC5 including the new router RC1 release.
Read more >angular/angular-cli - Gitter
I am update rc6 in angular cli get error on "Could not serve on http://localhost:4200. It is either in use or you do...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Wow - that was fast - Thanks ManuCutillas 😃
Yeah - the version 0.4.5 works with RC6
I believe some of the changes might just be in this file (as some stuff is deprecated now)
https://github.com/ManuCutillas/ng2-responsive/blob/master/src/index.ts
I am guessing that removing
provide
andPLATFORM_DIRECTIVES
from this line:import { NgModule, provide, PLATFORM_DIRECTIVES } from '@angular/core';
insrc/index.ts
might be step one 😃Still pretty new to the world of JS and Angular.