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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -