我想在應用程序中使用detect-mobile包(https://github.com/hgoebl/mobile-detect.js/tree/v1.4.4)Angular。但它不能以通常的方式導入。我已經嘗試了以下每一項:import { MobileDetect } from 'mobile-detect';import MobileDetect from 'mobile-detect';import {} from 'mobile-detect';移動檢測d.ts文件具有以下結構:我做錯了什么,應該如何導入?此外,我將不勝感激解釋此類軟件包與其他軟件包的不同之處。Stackblitz:https ://stackblitz.com/edit/angular-3qptjt
從 npm 包中導入 Angular 模塊
開心每一天1111
2021-11-04 16:08:32