Reputation: 2828
I'm trying to use ng2-auto-complete module for Angular2 with universal-starter that builds by WebPack. And the second step of installation tells to:
- add
map
andpackages
to your systemjs.config.js
map['ng2-auto-complete'] = 'node_modules/ng2-auto-complete/dist';
packages['ng2-auto-complete'] = {main:'ng2-auto-complete.umd.js', defaultExtension: 'js'}
But how covert this lines into the webpack config file to avoid thie ERROR?
C:\Users\qm69\Code\angular2\khex@universal-starter\dist\server\index.js:37738
var paramTypes = ctorParameters.map(function (ctorParam) { return ctorParam && ctorParam.type; });
^
TypeError: ctorParameters.map is not a function
at ReflectionCapabilities.parameters (C:\Users\qm69\Code\angular2\khex@universal-starter\dist\server\index.js:37738:45)
Upvotes: 0
Views: 374
Reputation: 223259
2
doesn't stand for 'the second step'. It is an alternative to 1
.
Webpack picks NPM modules automatically and doesn't require the configuration that SystemJS does.
Upvotes: 1