You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If vite is installed with preset-vite in a subdirectory of the project root and both node_modules folders has a preact-lib, there can be a mismatch in which preact-library it should use and we get: Uncaught TypeError: Cannot read properties of undefined (reading '__H')
If the aliases in resolve.alias are set with full path the problem goes away. So a monkey patched version can look like this:
If vite is installed with preset-vite in a subdirectory of the project root and both node_modules folders has a preact-lib, there can be a mismatch in which preact-library it should use and we get:
Uncaught TypeError: Cannot read properties of undefined (reading '__H')
If the aliases in resolve.alias are set with full path the problem goes away. So a monkey patched version can look like this:
So the alias needs to point to the react lib in the vite-folder. It would be great to have this is preact-vite instead of the patch above.
The text was updated successfully, but these errors were encountered: