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

Warnings on missing components #1

Closed
mbalex99 opened this issue Feb 15, 2016 · 4 comments
Closed

Warnings on missing components #1

mbalex99 opened this issue Feb 15, 2016 · 4 comments
Labels

Comments

@mbalex99
Copy link

Currently I'm getting some warnings in the component:

WARNING in ./~/angular2-toaster/src/toaster-container.component.js
Cannot find source file 'toaster-container.component.ts': Error: Cannot resolve 'file' or 'directory' ./toaster-container.component.ts in /Users/maximilianalexander/edenwebpack/node_modules/angular2-toaster/src

WARNING in ./~/angular2-toaster/src/toaster.service.js
Cannot find source file 'toaster.service.ts': Error: Cannot resolve 'file' or 'directory' ./toaster.service.ts in /Users/maximilianalexander/edenwebpack/node_modules/angular2-toaster/src

WARNING in ./~/angular2-toaster/src/bodyOutputType.js
Cannot find source file 'bodyOutputType.ts': Error: Cannot resolve 'file' or 'directory' ./bodyOutputType.ts in /Users/maximilianalexander/edenwebpack/node_modules/angular2-toaster/src

WARNING in ./~/angular2-toaster/src/toast.js
Cannot find source file 'toast.ts': Error: Cannot resolve 'file' or 'directory' ./toast.ts in /Users/maximilianalexander/edenwebpack/node_modules/angular2-toaster/src

WARNING in ./~/angular2-toaster/src/toaster-config.js
Cannot find source file 'toaster-config.ts': Error: Cannot resolve 'file' or 'directory' ./toaster-config.ts in /Users/maximilianalexander/edenwebpack/node_modules/angular2-toaster/src
`
@Stabzs
Copy link
Owner

Stabzs commented Feb 15, 2016

Thanks for letting me know. I"ll be updating the directory structure soon to allow for better consumption which will fix this.

@Stabzs
Copy link
Owner

Stabzs commented Feb 15, 2016

This has been rebuilt. Please get latest package version.

@Stabzs Stabzs closed this as completed Feb 15, 2016
@Stabzs Stabzs added the bug label Feb 18, 2016
@jackhutu
Copy link

The problem still exists.

@Stabzs
Copy link
Owner

Stabzs commented Mar 10, 2016

How are you importing the angular2-toaster module? Could you please provide a small reproducible sample?

It's probable that you're receiving warnings since by default src is not distributed with the package and source maps are.

I'm open to suggestions on a better way to resolve this. src could be added to the npm package distributable, source maps could be removed, or another option could be used as well.

Perhaps the correct approach is to still distribute as is, with the expectation that an attempt to debug WOULD indeed display a warning unless src/* is included manually in the module, since debugging source seems odd in the context of consuming the library. Feel free to chime in on what you view as a possible solution.

@Stabzs Stabzs reopened this Mar 10, 2016
@Stabzs Stabzs closed this as completed Mar 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants