ng2-notifications icon indicating copy to clipboard operation
ng2-notifications copied to clipboard

Cannot find module ng2-notifications

Open jimjamdev opened this issue 8 years ago • 11 comments

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

jimjamdev avatar May 31 '16 09:05 jimjamdev

@jimmyjamieson Thanks for reporting this. I'm looking into it.

alexcastillo avatar Jun 06 '16 17:06 alexcastillo

Same for me , is there any Solution resolving this Issue ?

onecib avatar Jul 22 '16 15:07 onecib

Can you guys share your systemjs config?

alexcastillo avatar Jul 22 '16 16:07 alexcastillo

Same here, using webpack

beljand avatar Jul 28 '16 15:07 beljand

any news for this?

JDuffyCM avatar Nov 05 '16 19:11 JDuffyCM

  • 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.

Bosper avatar Jan 23 '17 07:01 Bosper

@jimmyjamieson @xcuben @beljand @JDuffyCM @Bosper try import { PushNotificationComponent } from 'ng2-notifications/ng2-notifications';

artu-ole avatar Feb 17 '17 15:02 artu-ole

Shouldn't this be added to the README.md?

dowrow avatar Oct 10 '17 13:10 dowrow

@artu-ole solution is still not published on README.md.

afboteros avatar Oct 12 '17 15:10 afboteros

@dowrow Mind submitting a PR?

alexcastillo avatar Oct 12 '17 16:10 alexcastillo

Cannot find module ng2-notifications . Still getting this issue when I use webpack.

phani257 avatar Nov 14 '17 20:11 phani257