ng2-prism icon indicating copy to clipboard operation
ng2-prism copied to clipboard

ng2 prism Cannot find module 'angular2/core'.

Open ghost opened this issue 7 years ago • 2 comments

C:/Users/George/Desktop/GitHub/Admin-panel/node_modules/ng2-prism/src/codeblock.component.d.ts (1,67): Cannot find module 'angular2/core'.

ghost avatar Apr 23 '17 12:04 ghost

i have this error how i can fix this

ghost avatar Apr 23 '17 12:04 ghost

Looks like ng2-prism hasn't been updated since the pre-release candidate days of angular 2...

Angular core is no longer referenced as angular2/core but rather angular/core.

So the options seem to be... use a pre-rc version of angular core... (Boooooooo!) OR update this github to be compatible with newer versions of angular+ (Oh boy...).

isaacdre avatar Jul 22 '19 20:07 isaacdre