Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on compiling angular2 #6

Open
romulotil opened this issue May 16, 2017 · 2 comments
Open

error on compiling angular2 #6

romulotil opened this issue May 16, 2017 · 2 comments

Comments

@romulotil
Copy link

romulotil commented May 16, 2017

based on the docs, I configured the component, set the imports and stuff, but I get an error

ERROR in [at-loader] ./node_modules/tree-component/dist/common.d.ts:1:1
TS2688: Cannot find type definition file for 'node'.

everything is just like the docs:
import { NodeComponent, TreeComponent } from "tree-component/dist/angular"; @NgModule({ imports: [ ... ], declarations: [ ... NodeComponent, TreeComponent, ] })
and the tree i set on the page is the most simple possible, also, i got one of the data arrays from the demo, so it should be working too

@romulotil romulotil changed the title error on building angular2 error on compiling angular2 May 16, 2017
@plantain-00
Copy link
Owner

You use it with Typescript?
The error shows you need to install npm install @types/node
For v2.6.1, @types/node is dependencies rather than devDependencies now, so @types/node will be installed when this component is installed, and then fixes your issue too.

So you can install @types/node, or update this component to v2.6.1.

@romulotil
Copy link
Author

Thanks for the response. I'm kinda new to these angular errors. I would never imagine this was the error...

Once i updated, I got other errors, maybe due to my package setup. I got messages on "duplicate identifiers". I'm still trying to find out what may be causing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants