ng2-notifications
ng2-notifications copied to clipboard
Cannot find module ng2-notifications
I've installed into node_modules, but upon importing I get
client?cd17:47 ./src/app/app.component.ts (4,43): error TS2307: Cannot find module 'ng2-notifications'.
I have verified it's installed correctly and the files exist.
I'm using https://github.com/preboot/angular2-webpack
looking for modules in C:\Projects\ng2Test\webapp_v2\node_modules
resolve 'file' ng2-notifications in C:\Projects\ng2Test\webapp_v2\node_modules
resolve file
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications.ts doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications.js doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications is not a file
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications.json doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications.css doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications.scss doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications.html doesn't exist
resolve 'file' or 'directory' C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications
resolve file
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications is not a file
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications.ts doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications.js doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications.json doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications.css doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications.scss doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications.html doesn't exist
resolve directory
directory default file index
resolve file index in C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications\index doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications\index.ts doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications\index.js doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications\index.json doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications\index.css doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications\index.scss doesn't exist
C:\Projects\ng2Test\webapp_v2\node_modules\ng2-notifications\index.html doesn't exist
@jimmyjamieson Thanks for reporting this. I'm looking into it.
Same for me , is there any Solution resolving this Issue ?
Can you guys share your systemjs config?
Same here, using webpack
any news for this?
- What's about this issue? Cool package, but cant be used with webpack. import { PushNotificationComponent } from 'ng2-notifications'; - Cannot find module ng2-notifications - VSCode shows.
@jimmyjamieson @xcuben @beljand @JDuffyCM @Bosper
try
import { PushNotificationComponent } from 'ng2-notifications/ng2-notifications';
Shouldn't this be added to the README.md?
@artu-ole solution is still not published on README.md.
@dowrow Mind submitting a PR?
Cannot find module ng2-notifications . Still getting this issue when I use webpack.