0

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:

  1. add map and packages 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)
Community
  • 1
  • 1
khex
  • 2,778
  • 6
  • 32
  • 56

1 Answers1

1

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.

Estus Flask
  • 206,104
  • 70
  • 425
  • 565