question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

angular-cli with SystemJS integration

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
guybedfordcommented, Aug 3, 2016

import Raven from 'raven-js'; is the correct syntax here. Did you try running TypeScript with the synthetic default exports flag - https://github.com/Microsoft/TypeScript/pull/5577. Also for the best SystemJS support always use the system module format output of TypeScript compilation which will provide this integration path anyway.

0reactions
kamilogorekcommented, Jan 10, 2018

Our TypeScript typings change quite a lot since this was reported. Please feel free to reopen this issue if it’s still relevant in any way.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting started with Syncfusion Angular SystemJS
To create new angular projects, Angular CLI is the best way. Installing Syncfusion Grid Package. Syncfusion packages are distributed in npm as @syncfusion ......
Read more >
Does Angular CLI use SystemJS? - Stack Overflow
Angular CLI does not use SystemJS anymore. They have moved over to Webpack, so there will not be a systemjs.config.js file in your...
Read more >
Angular Data Grid: Angular - Building with SystemJS - AG Grid
Our application will be a very simple one, consisting of a single Module, a single Component and a bootstrap file, as well a...
Read more >
Supported technologies: System.js - Wallaby.js
Angular >=2 app · Jspm/System.js. Bundles. For better performance, whenever possible, try using pre-bundled files for libraries as opposed to letting ...
Read more >
single-spa-angular
Each microfrontend (single-spa application) is an Angular CLI project that can use its own version of Angular and be deployed separately from any...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found