Skip to content
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

[5.3.1] [Bug] importing anything from the library results in error - Keys is not a function #265

Open
himanshu-1034 opened this issue Nov 26, 2024 · 2 comments
Assignees

Comments

@himanshu-1034
Copy link

himanshu-1034 commented Nov 26, 2024

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X ] Bug report 
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Current behavior

Issue occurs as soon as you import anything from library version 5.3.1
image

Expected behavior

Normally, the error should not come. So far we were using version 5.1.0 which did not cause any issue with our project. recently there was a requirement which could be easily resolved by a function exposed in latest version of this library (fitNodes) but due to this error we cannot upgrade the library.
Any help provided will be appreciated

Minimal reproduction of the problem with instructions

Step 1 -> Setup a react project with following library versions ->

  • React@18
  • React-dom@18
  • React-scripts@5
    Step 2 -> Install [email protected] and simply import Canvas component exposed by this library.
    Step 3 -> Run the server and you will see an error on console

What is the motivation / use case for changing the behavior?

Environment


Libs:
- react version: 18.0.0
- react-dom: 18.0.0
- react-scripts: 5.0.0
- reaflow: 5.3.1


Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
- [ x] All Browsers
 
For Tooling issues:
- Node version: have tried with v15, v18, v22
- Platform:  Mac
- IDE: VS code and Codesandbox env as well

Others:

@himanshu-1034 himanshu-1034 changed the title [5.3.1] [Bug] importing anything from the library results in error - Keys is not defined [5.3.1] [Bug] importing anything from the library results in error - Keys is not a function Nov 26, 2024
@himanshu-1034
Copy link
Author

Anyone who can help here?

@amcdnl amcdnl assigned evgenoid and SerhiiTsybulskyi and unassigned evgenoid Dec 2, 2024
@evgenoid evgenoid assigned evgenoid and unassigned SerhiiTsybulskyi Dec 5, 2024
@AykutSarac
Copy link
Contributor

AykutSarac commented Dec 24, 2024

I tried to upgrade from 5.2.8 to 5.3.1 and getting this error at the moment, flow diagram is not rendering.
EDIT: Issue starts from the version 5.2.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants