0

I have installed this with npm install angular2-google-maps and included it in my gulpfile like this: 'node_modules/angular2-google-maps/bundles/angular2-google-maps.js',

so it is included but I get an SyntaxError unexpected token<

my map structure:

Mapstructure 1

Mapstructure 2

I saw at this: Issue

That there is something wrong with the system.config, but I don't know how to set this right!

Here the system.config:

/**
 * Import angular2 components
 */
System.config({
    transpiler: 'typescript',
    typescriptOptions: { emitDecoratorMetadata: true },
    packages: {
        '/angular': {
            defaultExtension: 'ts'
        }
    }
});
System.import('/angular/main')
    .then(null, console.error.bind(console));
Community
  • 1
  • 1
Sireini
  • 4,142
  • 12
  • 52
  • 91

0 Answers0