-
Notifications
You must be signed in to change notification settings - Fork 86
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
Import "InitializePayload" fails in esbuild (e.g. when using Vite) #223
Comments
Naartti
added a commit
to Naartti/react-localize-redux
that referenced
this issue
Aug 26, 2021
Remove type import and declare it again. The bundler does not know to remove InitializePayload from the import, making builds fail for Vite (esbuild). Fixes ryandrewjohnson#223
Also run into this issue in an older system we have to fix up. |
@gerhardcit I did a fork of this package and included it locally in my project ( #224 ). |
In case someone stumbles here for a quick fix, I managed to do the following:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
fromLocalizeProviders
which does not exist inlocalize
. I checked react-localize-redux in my node_modules and there is noInitializePayload
inlocalize
.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:
What is the expected behavior?
Should be able to build the code.
Which versions of
react
andreact-localize-redux
are you using?react: 17.0.2
react-localize-redux: 3.5.3
The text was updated successfully, but these errors were encountered: