Skip to content

Commit

Permalink
fix(workspace): require import syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tomastrajan committed Jul 29, 2020
1 parent 033bbec commit bea87c5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npmjs.org/
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class AppComponent implements OnInit {
envName = env.envName;
version = env.versions.app;
year = new Date().getFullYear();
logo = require('../../assets/logo.png');
logo = require('../../assets/logo.png').default;
languages = ['en', 'de', 'sk', 'fr', 'es', 'pt-br', 'zh-cn', 'he'];
navigation = [
{ link: 'about', label: 'anms.menu.about' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { ROUTE_ANIMATIONS_ELEMENTS } from '../../../core/core.module';
})
export class AboutComponent implements OnInit {
routeAnimationsElements = ROUTE_ANIMATIONS_ELEMENTS;
releaseButler = require('../../../../assets/release-butler.png');
releaseButler = require('../../../../assets/release-butler.png').default;

constructor() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import { ROUTE_ANIMATIONS_ELEMENTS } from '../../../../core/core.module';
changeDetection: ChangeDetectionStrategy.OnPush
})
export class ParentComponent implements OnInit {
themeSrc: string = require('!raw-loader!./parent.component.scss-theme.scss');
themeSrc: string = require('!raw-loader!./parent.component.scss-theme.scss')
.default;
routeAnimationsElements = ROUTE_ANIMATIONS_ELEMENTS;

constructor() {}
Expand Down

0 comments on commit bea87c5

Please sign in to comment.