N
N
Nikita Ronzin2020-10-20 17:15:45
redux
Nikita Ronzin, 2020-10-20 17:15:45

How to properly import createStore from redux?

I'm trying to start the express server, in debugging I see an error instead of the stackTrace array.
A superficial search on the net for a solution has not yet yielded tangible results.
When I run the react front, everything works without errors.
/src/storage.js:3"
1: " createStore,"
2: " ^^^^^^^^^^^"
3: "SyntaxError: The requested module 'redux' does not provide an export named 'createStore' "
4: " at ModuleJob._instantiate (internal/modules/esm/module_job.js:95:9)"
5: " at async ModuleJob.run (internal/modules/esm/module_job.js:136:20)"
6: "at async Loader.import(internal/modules/esm/loader.js:179:24)"

import {
    applyMiddleware,
    createStore,
    combineReducers
} from "redux";

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question