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

python - Best design pattern for collection of objects -

go - serving up pdfs using golang -

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -