valor-software / ng2-tree

Angular tree component
http://valor-software.com/ng2-tree/index.html
MIT License
348 stars 190 forks source link

Missing .ts files #195

Open Rainson12 opened 6 years ago

Rainson12 commented 6 years ago

Hey, im using ng2-tree coupled with angular 4.3.1 and sharepoint framework. Because of that im not using the angular cli. When building my application i get the following webpack exception:

[12:04:16] Warning - [webpack] 'dist':
./~/ng2-tree/index.js
Cannot find source file '../index.ts': Error: Can't resolve '../index.ts' in 'C:\***\node_modules\ng2-tree'
 @ .***/GroupAdministrationIntranetWebPart.js 28:17-36
./~/ng2-tree/src/tree.js
Cannot find source file '../../src/tree.ts': Error: Can't resolve '../../src/tree.ts' in 'C:\***\node_modules\ng2-tree\src'
 @ ./~/ng2-tree/index.js 6:13-34
 @ .***/GroupAdministrationIntranetWebPart.js
./~/ng2-tree/src/tree.types.js
Cannot find source file '../../src/tree.types.ts': Error: Can't resolve '../../src/tree.types.ts' in 'C:\***\node_modules\ng2-tree\src'
 @ ./~/ng2-tree/index.js 3:19-46
 @ .***/GroupAdministrationIntranetWebPart.js
./~/ng2-tree/src/tree.events.js
Cannot find source file '../../src/tree.events.ts': Error: Can't resolve '../../src/tree.events.ts' in 'C:\***\node_modules\ng2-tree\src'
 @ ./~/ng2-tree/index.js 10:20-48
 @ .***/GroupAdministrationIntranetWebPart.js
./~/ng2-tree/src/tree.component.js
Cannot find source file '../../src/tree.component.ts': Error: Can't resolve '../../src/tree.component.ts' in 'C:\***\node_modules\ng2-tree\src'
 @ ./~/ng2-tree/index.js 21:23-54
 @ .***/GroupAdministrationIntranetWebPart.js
./~/ng2-tree/src/tree.module.js

Im running on "ng2-tree": "^2.0.0-rc.4"

rychkog commented 6 years ago

@Rainson12 latest ng2-tree only supports Angular 5

rychkog commented 6 years ago

Though this issue looks weird - I don't have Windows machine, unfortunately ....

rychkog commented 6 years ago

Will try to reproduce