NG6-starter icon indicating copy to clipboard operation
NG6-starter copied to clipboard

Issue on require designmodo-flat-ui

Open tucq88 opened this issue 8 years ago • 1 comments

I'm trying to import designmodo-flat-ui package, but it doesn't work very well.

flat-ui.js:7320Uncaught TypeError: Cannot read property 'documentElement' of undefined(…) That error comes from dependency for flat-ui scripts, I'm sure it's about jQuery but was unable to figure why

I have imported jQuery as well

import "jquery";
import "designmodo-flat-ui";

and declare $,jQuery in webpack

plugins: [
...
new webpack.ProvidePlugin({
      $: "jquery",
      jQuery: "jquery",
      "window.jQuery" : "jquery",
      "window.$": "jquery"
    })
...

Appreciate all helps :(

tucq88 avatar Nov 05 '16 02:11 tucq88

@tucq88 is this issue still relevant?

fesor avatar Jul 08 '17 10:07 fesor