Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Cannot find source file foo.ts #163

Closed
xadhoom opened this issue Jun 16, 2016 · 4 comments
Closed

Cannot find source file foo.ts #163

xadhoom opened this issue Jun 16, 2016 · 4 comments

Comments

@xadhoom
Copy link

xadhoom commented Jun 16, 2016

Hi,

I'm using the primeng npm module but the loader warns about not being able to find any foo.ts, for example:

WARNING in ./~/primeng/primeng.js
Cannot find source file 'primeng.ts': Error: Cannot resolve 'file' or 'directory' ./primeng.ts in /home/matteo/devel/detectino/apps/dt_web/webapp/node_modules/primeng

The npm package has no foo.ts, but only foo.d.ts, then foo.js and foo.js.map

The warning does not seems to cause any issue.

Can be a primeng issue or something I'm missing?

(I'm using a simplified version of https://github.com/AngularClass/angular2-webpack-starter for my test project)

@s-panferov s-panferov added the bug label Jun 20, 2016
@s-panferov
Copy link
Owner

@xadhoom hello,

right now I'm working on the next version of the loader. Could you please try it (2.0.0-rc.3 right now)? These errors must be solved there.

@xadhoom
Copy link
Author

xadhoom commented Jun 21, 2016

I've tried rc.10, but same errors.

In addition, it complains with rxjs (I'm also using angular2 latest release) with errors like:
Invalid module name in augmentation, module '../../Observable' cannot be found.

@s-panferov
Copy link
Owner

Invalid module name in augmentation, module '../../Observable' cannot be found.

This looks like a TS bug, see my another comment

@s-panferov
Copy link
Owner

Fixed in latest 2.0.0 release candidates.

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

No branches or pull requests

2 participants