Skip to content

angular-cli with SystemJS integration #671

@razvanmitre

Description

@razvanmitre

Hello,

I am using angular-cli with SystemJS, and I have the following issue when trying to use raven-js.

In main.ts I have
import Raven from 'raven-js';
but the compiler throws:
Module '"ncr-angular/node_modules/raven-js/typescript/raven"' has no default export.

In system-config.ts I have:

/** Map relative paths to URLs. */
const map: any = {
  'raven-js': 'vendor/raven-js'
};

/** User packages configuration. */
const packages: any = {
  'raven-js': {
    main: 'dist/raven.js'
  }
};

Am I doing something wrong?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions