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
Have errors in utils.js && ReactGridLayout.js #2037
Comments
using 1.4.3 |
is this observed when the JS out compile module to be commonJS in babel or webpack config ? |
We're hitting this too. The problem is the optional chaining operator (i.e.,
and this in 1.4.4:
The former looks like babel output handling an optional in vanilla JS whereas the latter is leaving the optional chaining in. If you're targeting pre-ES2020 (or using an older browser) it will barf on this. Perhaps this was from the node version switch from 16 -> 18? That looks like the biggest change in the diff: 1.4.3...1.4.4. Maybe this shouldn't be a patch release? |
Describe the bug
We are facing below issue when the webpack is compiling the RGL.
Babel Config
Node : 16
NPM:6
where forcing the RGL library version to 1.4.2 is fixing the issue, since there are multiple clients using different versions
of react-grid-layout, we can't request the clients to do force resolutions.
request to share the solution to this issue.
Your Example Website or App
https://codesandbox.io/p/sandbox/staging-bush-3lvt7?file=%2Fsrc%2FShowcaseLayout.js
Steps to Reproduce the Bug or Issue
Expected behavior
No Error in webpack build.
react-grid-layout library version
1.4.4, 1.3.4
Operating System Version
macOS,
Browser
Chrome
Additional context
No response
Screenshots or Videos
The text was updated successfully, but these errors were encountered: