New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generates an incorrect URL for a Redux Toolkit nested entry point #58
Comments
This is an issue with the https://unpkg.com/@reduxjs/toolkit@1.9.7/query/react/package.json {
"name": "@reduxjs/toolkit-query-react",
"version": "1.0.0",
"description": "",
"main": "../../dist/query/react/index.js",
"module": "../../dist/query/react/rtk-query-react.esm.js",
"unpkg": "../../dist/query/react/rtk-query-react.umd.min.js",
"author": "Mark Erikson <mark@isquaredsoftware.com>",
"license": "MIT",
"types": "../../dist/query/react/index.d.ts",
"sideEffects": false
} The version mismatch confuses |
Hmm. Yeah, part of the problem here is that this is actually all one package, with multiple entry points. That The version numbers in those are pretty irrelevant, but technically I could update those as part of the build process, I guess. RTK 2.0 has proper ESM and But, both these attempts error in different ways: export { configureStore } from "@reduxjs/toolkit@2.0.0-beta.4";
export {createApi} from "@reduxjs/toolkit@2.0.0-beta.4/query/react";
// or
// export {createApi} from "@reduxjs/toolkit/query/react@2.0.0-beta.4";
export { Provider } from "react-redux"; |
I'll look into way to fix that behavior so it still bundles |
I'm trying to bundle this set of exports:
It downloads React-Redux okay, but fails to download the RTK
/query/react
entry point, because it's generating a wrong version URL (1.0.0
, when the current version is1.9.5
):The text was updated successfully, but these errors were encountered: