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
With the node version v16.14.0, the React version "16.13.1" and the react-animate-height" version "^3.0.3", I get the next issue:
Failed to compile.
./node_modules/react-animate-height/dist/esm/index.js 17:32 Module parse failed: Unexpected token (17:32) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | // Check for element?.style is added cause this would fail in tests (react-test-renderer) | // Read more here: #17
Hello there,
I think I know what is going on, and I've released version 3.0.4, so please try that.
And please try to provide even more data when opening an issue (which tools are you using, is it a client, or server build...), it makes it much easier to pinpoint bugs like this. Thank you!
Cheers!
EDIT: The problem was that target in my tsconfig was set to esnext, I swapped it for es6: edac80d
With the node version v16.14.0, the React version "16.13.1" and the react-animate-height" version "^3.0.3", I get the next issue:
Failed to compile.
./node_modules/react-animate-height/dist/esm/index.js 17:32 Module parse failed: Unexpected token (17:32) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | // Check for element?.style is added cause this would fail in tests (react-test-renderer) | // Read more here: #17
if (height === 0 && element?.style) {
| element.style.display = 'none'; | }
It is solved changing the version of react-animate-height to "^2.0.1".
The text was updated successfully, but these errors were encountered: