node.js - Webpack Uncaught ReferenceError: createStore is not defined -


i import redux library main.js file gathers others js files. webpack js file 1 bundle.js. still error functions other js files:

uncaught referenceerror: createstore not defined  

what issue?

you should import redux library each of file before use webpack:

import { createstore } 'redux'; 

then going refer createstore , not use redux variable.


Comments

Popular posts from this blog

android - IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling -

go - serving up pdfs using golang -

how to add preprocess loader in webpack 2 -