Home > Net >  underscore__WEBPACK_IMPORTED_MODULE_3__ is not a function
underscore__WEBPACK_IMPORTED_MODULE_3__ is not a function

Time:10-01

I am stuck with issue. Has anyone encountered this. As I am unable to get it what it is asking for.

This is how I imported this library highlighted in yellow.

enter image description here

enter image description here

This how it is showing in browser error.

enter image description here

CodePudding user response:

Instead of

import * as _ from 'underscore';

you need to

import _ from 'underscore';
  • Related