question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with library import.

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
PatrickHuettercommented, Feb 4, 2017

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.

0reactions
RezaRahmaticommented, Jan 8, 2021

@simply-simpy issue with ng 11, is resolved in v19

Read more comments on GitHub >

github_iconTop Results From Across the Web

Import error for python libraries - Stack Overflow
My python script uses these local libraries, but if other users have to run the script then it gives import error.
Read more >
Import Item Library Troubleshooting | Square Support Center
If you have trouble importing your item library, you may be experiencing an issue with your Excel (XLSX) or Comma Separated Value (CSV)...
Read more >
What if I hit problems importing libraries? - ScalablyTyped
Search for, or raise, an issue identifying the library you're importing and what's going wrong. Work on a minimized test case for the...
Read more >
I get an error while importing my custom library
Library folders must have a specific structure before being zipped and imported into the Web Editor. · Try deleting extra file (such as...
Read more >
"Managed library import failed" when creating or updating a ...
Issue : When attempting to create a new managed library or make change to an existing one, the following message appears in Fusion...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found