angular-cli with SystemJS integration
See original GitHub issueHello,
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:
- Created 7 years ago
- Comments:9 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 thesystem
module format output of TypeScript compilation which will provide this integration path anyway.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.