Answer the question
In order to leave comments, you need to log in
How to use imports-loader in react universal app?
There is an app on this template https://github.com/erikras/react-redux-universal-h...
You need to attach jvectormap.com
I downloaded the js file and put it next to it.
import './jquery-jvectormap-2.0.3.min' throws "error given was: ReferenceError: jQuery is not defined"
I set 'imports-loader' and 'jquery'
import 'imports?jQuery=>jquery!./jquery -jvectormap-2.0.3.min' throws "error given was: Error: Cannot find module 'imports?jQuery=>jquery!./jvectormap'"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question