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

go - serving up pdfs using golang -

python - Best design pattern for collection of objects -

how to add preprocess loader in webpack 2 -