I am new to SPFx and I am getting an error while trying to add jQuery and external JS in SPFX.
Example my web-part name is
FlipBookWebPart and I am trying to add
modernizr.js into the
I have declared the
modernizr in config.json like:
And below is an error that I received when add the web-part in local-workbench.
webpart.ts, I add
modernizr using following code
import * as jQuery from "jquery"; import "jqueryui"; require('modernizr');