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.

Module not found (Angular 4.0.0-rc.5)

See original GitHub issue

I just update to latest angular 4.0.0-rc.5 and get this error: ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-source/server/server.data-source.ts Module not found: Error: Can't resolve '@angular/http/src/url_search_params' in '/Users/Petik/Sites/fpm/frontend/node_modules/ng2-smart-table/src/ng2-smart-table/lib/data-source/server' @ ./~/ng2-smart-table/src/ng2-smart-table/lib/data-source/server/server.data-source.ts 12:0-70 @ ./~/ng2-smart-table/src/ng2-smart-table/lib/index.ts @ ./~/ng2-smart-table/ng2-smart-table.js @ ./src/app/clients/clients.module.ts @ ./src/app/app.module.ts @ ./src/main.ts @ multi webpack-dev-server/client?http://localhost:4201 ./src/main.ts

I have to update server.data-source.ts in order to work. From: import { RequestOptionsArgs } from '@angular/http/src/interfaces'; 
import { URLSearchParams } from '@angular/http/src/url_search_params';

To: import { URLSearchParams, RequestOptionsArgs } from '@angular/http';

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
tobemediacommented, Mar 30, 2017

npm install --save ng2-smart-table@latest solved the problem for me

0reactions
nagipogucommented, Feb 4, 2019

ERROR in src/app/app.module.ts(4,37): error TS2307: Cannot find module ‘ng2-smart-table’.

i 「wdm」: Failed to compile. ^CTerminate batch job (Y/N)? y PS D:\I-AAA\Projects\Giribabu\IAAAtech\Projects\JOHNDEERE\john-deere3\ng2-smart-table> npm install --save ng2-smart-table@latest npm ERR! code ENOSELF npm ERR! Refusing to install package with name “ng2-smart-table” under a package npm ERR! also called “ng2-smart-table”. Did you name your project the same npm ERR! as the dependency you’re installing? npm ERR! npm ERR! For more information, see: npm ERR! https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Intel\AppData\Roaming\npm-cache_logs\2019-02-04T13_21_55_023Z-debug.log

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when upgrade to Angular 9 "9.0.0-rc.5" - Stack Overflow
my @ngModule of the project did not change just dependencies and i dont know why a dependency array is empty. this is my...
Read more >
Upgrading from AngularJS to Angular
This not only makes components easy to navigate and find, but will also allow us to ... In AngularJS, you add Angular assets...
Read more >
Update to Angular 11 Version - Angular Wiki
As of now there is no official information regarding Angular 11 release date.In this post I will explain the features of Angular 11...
Read more >
module not found: error: can't resolve 'fs' angular - You.com
In Angular 5 I was able to eject and add in the webpack.config.js following lines at the root level: "externals": { "mongodb": 'require("mongodb")',...
Read more >
angular npm install and npm audit fix is breaking on ... - Reddit
... on vulnerable versions of postcss node_modules/postcss-modules-local-by-default postcss-modules-values 2.0.0 - 4.0.0-rc.5 Depends on ...
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