You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
romulotil
changed the title
error on building angular2
error on compiling angular2
May 16, 2017
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.
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
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
The text was updated successfully, but these errors were encountered: