Problem with library import.
See original GitHub issueI’m submitting a …
[ * ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here
Current behavior Angular does not see a module
Expected behavior Angular does see a module
Reproduction of the problem I have installed datatables using npm, included in my application and I receive:
http://localhost:3000/@swimlane/ngx-datatable 404 (Not Found)
In my node_module folder I do have @swimlane/ngx-datatable folder so it seems to be installed.
import { NgModule } from ‘@angular/core’; import { BrowserModule } from ‘@angular/platform-browser’; import { RouterModule, Routes } from ‘@angular/router’; import { HttpModule } from ‘@angular/http’;
import { NgxDatatableModule } from ‘@swimlane/ngx-datatable’;
import { AppComponent } from ‘./components/app.component’; import { TestLineMonitorComponent } from ‘./components/test-line-monitor.component’; import { TabsComponent } from ‘./components/tabs.component’; import { TestLinesTableComponent } from ‘./components/testlines-table.component’;
What is the motivation / use case for changing the behavior?
Please tell us about your environment: Angular 2.4.3, Windows 7
-
Table version: 0.7.x The newest
-
Angular version: 2.0.x 2.4.3
-
Browser: [all ]
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:10 (2 by maintainers)
Top GitHub Comments
I’ve the same problem. Imports in this syntax don’t work (they are failing while building for prod): import { NgxDatatableModule } from ‘@swimlane/ngx-datatable’;
Module not found: Error: Can't resolve '@swimlane/ngx-datatable' in '/var/www/src/app/myAppName/pages/firstpage'
I’m using angular 2.4.4.
@simply-simpy issue with ng 11, is resolved in v19