When I tried to use `exceljs` in `Angular-6` like so

```
import * as excel from 'exceljs'

createExcel() {
  let workbook = new excel.Workbook()
}

```

even I just initialize a class and got this error. If I comment out this line `let workbook = new excel.Workbook()` then error gone

> 
> ./node\_modules/fs-constants/browser.js
>  Module not found: Error: Can't resolve 'constants' in 'D:\Developer\spire-client\node\_modules\fs-constants'
> 
> 
> 

[![enter image description here](https://i.stack.imgur.com/6rSRQ.png)](https://i.stack.imgur.com/6rSRQ.png)