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

ng2-typeahead.js not found

Open DIneshArun1991 opened this issue 7 years ago • 1 comments

Hi,

I have complied after configuration changes also. still getting the below error

Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:3001/node_modules/ng2-typeahead/ng2-typeahead.js Error: XHR error (404 Not Found) loading http://localhost:3001/node_modules/ng2-typeahead/ng2-typeahead.js at XMLHttpRequest.wrapFn [as __zone_symbol___onreadystatechange] (http://localhost:3001/node_modules/zone.js/dist/zone.js:1199:29) [] at Zone.runTask (http://localhost:3001/node_modules/zone.js/dist/zone.js:165:47) [ => ] at XMLHttpRequest.ZoneTask.invoke (http://localhost:3001/node_modules/zone.js/dist/zone.js:460:38) [] Error loading http://localhost:3001/node_modules/ng2-typeahead/ng2-typeahead.js as "ng2-typeahead" from http://localhost:3001/app/app.module.js at XMLHttpRequest.wrapFn [as __zone_symbol___onreadystatechange] (http://localhost:3001/node_modules/zone.js/dist/zone.js:1199:29) [] at Zone.runTask (http://localhost:3001/node_modules/zone.js/dist/zone.js:165:47) [ => ] at XMLHttpRequest.ZoneTask.invoke (http://localhost:3001/node_modules/zone.js/dist/zone.js:460:38) [] Error loading http://localhost:3001/node_modules/ng2-typeahead/ng2-typeahead.js as "ng2-typeahead" from http://localhost:3001/app/app.module.js

DIneshArun1991 avatar Apr 06 '17 10:04 DIneshArun1991

Well what solved this issue for me was in systemjs.config.js, under map object I changed the recommended 'ng2-typeahead': 'node_modules/ng2-typeahead', to 'ng2-typeahead': 'node_modules/ng2-typeahead/lib',

Seville avatar Oct 16 '17 02:10 Seville