1inus / ng.tree

11 stars 5 forks source link

Add angular 5 support. #4

Open andream16 opened 7 years ago

andream16 commented 7 years ago

Hi, I recently upgraded my angular-cli project from v4.4 to v5 and using

@NgModule({
    imports: [BrowserModule],
    entryComponents:[NgTree],
    declarations: [NgTree, App],
    bootstrap: [App]
})

npm start leads to: ERROR in Error: NgTree cannot be used as an entry component. and ng serve --aot leads to: ERROR in Error: Unexpected value 'NgTree in ../node_modules/ng.tree/ng.tree.d.ts' declared by the module 'PagesModule in pages.module.ts'. Please add a @Pipe/@Directive/@Component annotation.

Hope you can fix this soon.

1inus commented 7 years ago

give me some time,maybe 4 day

dpkatre123 commented 7 years ago

Any update on this issue I also getting this error in prod build

dpkatre123 commented 7 years ago

Its very urgent request Could you please provide fix for this issue..

1inus commented 7 years ago

try my best, I was stuck at work

dpkatre123 commented 7 years ago

Hi, I tried my luck to fix this issue. it looks like that, if I change "types": "ng.tree.d.ts", to "types": "ng.tree.ts" in package.json and make tData property public, it compiles in --prod build.

Could you please confirm if this is solution and release latest

Thank you.

dpkatre123 commented 6 years ago

Hi Any could see the problem..

thomas0728 commented 6 years ago

hi dpkatre123: make tData property public, it compiles in --prod build. what is mean?

dpkatre123 commented 6 years ago

Hi Thank you for reply,

yes If I make tData property public and if I change "types": "ng.tree.d.ts", to "types": "ng.tree.ts" in package.json then it compiles in --prod.

thomas0728 commented 6 years ago

I found that copy ngtree.ts directly to the project when the component can be used on the '

dpkatre123 commented 6 years ago

I tried this, Included ngtree.ts directly in project; however in prod build it I have to make tData property public then it works.

I am expecting updated release with these changes from component owner.

dpkatre123 commented 6 years ago

Hi, could you please help me to get the fix in release. now, by adding ng.tree.ts in project and changing tData property to public it works. I will be having release in next 2 weeks, is it possible for you to help us on this else we may need to look for other alternatives.

Windowsz commented 5 years ago

Someone can fix this problem please.

JFancis commented 5 years ago

hello to all your component is it compatible with angular 6