beta12 import error
See original GitHub issuehi I’m struggling after moving to angular2 beta12
✗ TypeScript error: /xxxx/node_modules/angular2-moment/CalendarPipe.ts(49,7): Error TS2322: Type 'EventEmitter<{}>' is not assignable to type 'EventEmitter<Date>'.
Type '{}' is not assignable to type 'Date'.
Property 'toDateString' is missing in type '{}'.
✗
/xxxxx/node_modules/angular2-moment/TimeAgoPipe.ts:3
import {Pipe, ChangeDetectorRef, PipeTransform, OnDestroy} from 'angular2/core';
^
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Observable errors with Angular2 beta.12 and RxJs 5 beta.3
Regarding operators, you need to import them manually since they aren't included in the Observable class by default.
Read more >[1.8.2-beta.12] `import` statements break IE11 - screen stays ...
Version 1.8.2-beta.16, the most recent beta at this moment, is unable to run in IE. The starter repo does work.
Read more >3 ModuleNotFoundError with Ubuntu 18.04 + 9.2beta12 + ...
ImportError: The 'six' package is required; normally this is bundled with this package so if you get this warning, consult the packager of...
Read more >Fix Import Error - CodeSandbox
Fix Import Error. 0. 255. 2. JasonGoreJasonGore. Environmentcreate-react-app. Files. public. src. index.tsx. package.json. tsconfig.json. Dependencies.
Read more >2.9.0.beta12: Security fix, bug fixes and more - Discourse Meta
New features in 2.9.0.beta12 Security Updates This beta includes two security fixes for issues reported by our community and HackerOne.
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 FreeTop 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
Top GitHub Comments
I’m seeing the same thing as @lordgreg with ionic@2.0.0-beta.24
I resolved it by adding some options to the gulpfile.js specialy to buildBrowserify options in the task watch. It works !
Modify also the task build