1

After adding aurelia fetch client to my project i am getting the below exception when i am running au run

/node_modules/aurelia-fetch-client/dist/aurelia-fetch-client.d.ts(73,43): error TS2304: Cannot find name 'URLSearchParams'.

How to resolve this?

Shravan Ramamurthy
  • 3,896
  • 5
  • 30
  • 44

2 Answers2

1

After i installed URLSearchParams following this link the error went away.

typings install github:RomkeVdMeulen/URLSearchParams --global --save

Shravan Ramamurthy
  • 3,896
  • 5
  • 30
  • 44
1

You have to import URLSearchParams from @angular/http

import {URLSearchParams} from '@angular/http';

Doc here

Toodoo
  • 8,570
  • 6
  • 35
  • 58