Skip to content

Commit

Permalink
allowing synthetic default import to solve StackBlitz bug
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryCarron committed Feb 9, 2021
1 parent e59d717 commit 1a99de4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, OnInit } from "@angular/core";
import { UtilitiesService } from "./utilities.service";
import * as moment_ from "moment";
const moment = moment_;
import moment from "moment";

/**
* One Kilometer time in seconds
*/
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BrowserModule } from "@angular/platform-browser";
import { NgModule } from "@angular/core";
import { AppComponent } from "./app.component";
import { ActivityGraphComponent } from "./components/activity-graph/activity-graph.component";
import { DataEditorComponent } from './components/data-editor/data-editor.component';
import { DataEditorComponent } from "./components/data-editor/data-editor.component";
@NgModule({
declarations: [AppComponent, ActivityGraphComponent, DataEditorComponent],
imports: [BrowserModule],
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compileOnSave": false,
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
Expand All @@ -18,6 +19,7 @@
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"strictInjectionParameters": true

}
}

0 comments on commit 1a99de4

Please sign in to comment.