ngx-modialog icon indicating copy to clipboard operation
ngx-modialog copied to clipboard

issues referencing the modules

Open squarewave24 opened this issue 8 years ago • 3 comments

im trying to add this into my existing app, and having issues while following your directions

in systemjs.config

  'angular2-modal': 'node_modules/angular2-modal' // this will give me a 404 

this works:

  'angular2-modal': 'node_modules/angular2-modal/bundles/angular2-modal.umd.js',

the issue is later, when I try to also reference the bootstrap module

  'angular2-modal': 'node_modules/angular2-modal/bundles/angular2-modal.umd.js',
  'angular2-modal/plugins/bootstrap': 'node_modules/angular2-modal/plugins/bootstrap/bootstrap.js',

later in my module, this compiles:

import { ModalModule } from 'angular2-modal';
import { BootstrapModalModule } from 'angular2-modal/plugins/bootstrap';

but i am getting a 404 on BootstrapModalModule because it's still looking in the first location

http://localhost:3000/node_modules/angular2-modal/plugins/bootstrap/bootstrap.js

squarewave24 avatar Jan 31 '17 01:01 squarewave24

If i go by your example,

import { ModalModule } from 'angular2-modal';
import { BootstrapModalModule } from 'angular2-modal/plugins/bootstrap';

It looks good in VS Code, but at runtime I get this error,

zone.js:1382 GET http://localhost:3000/node_modules/angular2-modal/plugins/bootstrap.js 404 (Not Found)

zone.js:1382 GET http://localhost:3000/node_modules/angular2-modal/ 404 (Not Found)

it appears to be looking in 1 directory up.

my systemjs.config:

'angular2-modal': 'node_modules/angular2-modal',

i can tweak it to work for one, but not both..

squarewave24 avatar Jan 31 '17 13:01 squarewave24

anyone?

squarewave24 avatar Feb 15 '17 18:02 squarewave24

Does anyone have a working SystemJS config for the renamed/restructured ngx-modialog?

wlievens avatar Sep 30 '17 19:09 wlievens