diff --git a/package.json b/package.json index b0c3cc2c6..2a4ee43fa 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "@types/ms": "0.7.30", "@types/node": "10.12.18", "@types/nodemailer": "4.6.5", + "@types/nprogress": "0.0.29", "@types/oauth": "0.9.1", "@types/parsimmon": "1.10.0", "@types/portscanner": "2.1.0", diff --git a/src/client/app/common/scripts/loading.ts b/src/client/app/common/scripts/loading.ts index c48e62664..70a3a4c85 100644 --- a/src/client/app/common/scripts/loading.ts +++ b/src/client/app/common/scripts/loading.ts @@ -1,4 +1,4 @@ -const NProgress = require('nprogress'); +import * as NProgress from 'nprogress'; NProgress.configure({ trickleSpeed: 500, showSpinner: false