eduolalo / moment-business-days

This is a momentJS plugin that allows you to use only business days (Monday to Friday)
MIT License
240 stars 67 forks source link

allowSyntheticDefaultImports flag #85

Closed xinthose closed 2 years ago

xinthose commented 4 years ago

Code: import * as moment from "moment-business-days";

Visual Studio Code Error

This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export.

Angular: 9.1.11 ... animations, common, compiler, compiler-cli, core, forms ... language-service, localize, platform-browser ... platform-browser-dynamic, router Ivy Workspace: Yes

Package Version

@angular-devkit/architect 0.901.9 @angular-devkit/build-angular 0.901.9 @angular-devkit/build-optimizer 0.901.9 @angular-devkit/build-webpack 0.901.9 @angular-devkit/core 9.1.9 @angular-devkit/schematics 9.1.9 @angular/cdk 9.2.4 @angular/cli 9.1.9 @ngtools/webpack 9.1.9 @schematics/angular 9.1.9 @schematics/update 0.901.9 rxjs 6.5.5 typescript 3.8.3 webpack 4.42.0


- `npm moment-business-days --version`
`6.14.4`