react-localize-redux
react-localize-redux copied to clipboard
Import "InitializePayload" fails in esbuild (e.g. when using Vite)
Do you want to request a feature or report a bug? Bug
What is the current behavior?
react-localize-redux cannot be built in Vite for react because there is an import of InitializePayload
from LocalizeProviders
which does not exist in localize
. I checked react-localize-redux in my node_modules and there is no InitializePayload
in localize
.
node_modules/react-localize-redux/es/LocalizeProvider.js:10:131: error: No matching export in "node_modules/react-localize-redux/es/localize.js" for import "InitializePayload"
10 │ ...age, initialize as initializeAC, INITIALIZE, InitializePayload } from './localize';
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:
- Start a new Vite project and choose React and TypeScript.
- Install react-localize-redux.
- Import anything from react-localize-redux.
- Start dev server and see the error in the terminal.
What is the expected behavior? Should be able to build the code.
Which versions of react
and react-localize-redux
are you using?
react: 17.0.2
react-localize-redux: 3.5.3