While I'm loving Angular 2 in all other respects, I'm finding the supporting infrastructure challenging, particularly when it comes to how to properly reference node modules in my angular2-seed projects.
I've successfully installed ng2-responsive so that it is finding it in app.module.ts:
import { ResponsiveModule } from 'ng2-responsive';
by adding this:
map: {
'ng2-responsive': 'node_modules/ng2-responsive',
},
packages: {
'ng2-responsive': {
main: './index.js',
defaultExtension: 'js'
}
}
to seed.config.ts under SYSTEM_CONFIG_DEV
but, I'm now getting:
[...]node_modules/ng2-responsive/index.d.ts(1,90): error TS2307: Cannot find module './bootstrap/bootstrap-directives'
when it attempts to run build.dev.js after I run npm start, and the same for the other directives referenced in ng2-responsive's index.d.ts...presumably because they're referenced like this:
import { XL, LG, MD, SM, XS, ShowItBootstrap, HideItBootstrap, ResponsiveSizeInfo } from './bootstrap/bootstrap-directives';
and that path is relative to index.d.ts, not where the it's currently being run from.
Any ideas how I tell build.dev.js to look for these where they actually exist?
Many thanks