Is it possible to use toolkit in Node.js ESM with named imports? #3756
-
Hi, i try to use redux toolkit in Node.js v16.15.1 in mjs file by named imports like this: // index.mjs
import { createAction } from '@reduxjs/toolkit';
createAction('test'); and it causes error:
Is it possible to use redux toolkit in Node.js with named import? |
Beta Was this translation helpful? Give feedback.
Answered by
markerikson
Sep 29, 2023
Replies: 1 comment
-
Yes, we've fixed that in RTK 2.0 beta. (RTK 1.9 will not have those fixes - they need to go in a major version.) https://github.com/reduxjs/redux-toolkit/releases/tag/v2.0.0-beta.2 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
krutoo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, we've fixed that in RTK 2.0 beta. (RTK 1.9 will not have those fixes - they need to go in a major version.)
https://github.com/reduxjs/redux-toolkit/releases/tag/v2.0.0-beta.2