question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

beta12 import error

See original GitHub issue

hi 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:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
wlicommented, Apr 6, 2016

I’m seeing the same thing as @lordgreg with ionic@2.0.0-beta.24

1reaction
remithomascommented, Apr 16, 2016

I resolved it by adding some options to the gulpfile.js specialy to buildBrowserify options in the task watch. It works !

buildBrowserify({
 watch: true,
 // add this below
 browserifyOptions: {
  cache: {},
  packageCache: {},
  debug: true,
  extensions: ['.js', '.ts']
 }
}).on('end', done);

Modify also the task build

buildBrowserify({
 watch: true,
 browserifyOptions: {
 cache: {},
 packageCache: {},
 debug: true,
 extensions: ['.js', '.ts']
 }
})
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found