I import in angular2 some module and have error. traceur not found. Example angular2-google-maps system.config.js
var map = {
...
'angular2-google-maps/core': 'node_modules/angular2-google-maps/src/core',
...
};
var packages = {
'angular2-google-maps/core': {
main: 'core-module.ts', // or index.ts
defaultExtension: 'ts'
},
...
};
app/app.module.ts
import { AgmCoreModule } from 'angular2-google-maps/core';
error: http://localhost:3000/traceur 404 not found
how right way settings modules in angular2?
As you can see on the demo plunker, You have to import the umd file to get it working properly. Importing the TS
files will never work, because your browser doesn't want typescript
, it wants Javascript
ones.
var map = {
...
'angular2-google-maps/core': 'node_modules/angular2-google-maps/core/core.umd.js',
...
};
var packages = {
... //NOT CHANGED
};