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

Splitter: esm build throws TypeError due to improper use of const in a for loop #3527

Closed
kalinkrustev opened this issue Oct 31, 2022 · 0 comments · Fixed by #3528
Closed
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@kalinkrustev
Copy link
Contributor

Describe the bug

Search for _readOnlyError("index") in the transpiled code https://unpkg.com/primereact@8.7.0/splitter/splitter.esm.js and see that the code always throws.

Reproducer

No response

PrimeReact version

8.7.0

React version

17.x

Language

ALL

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

This can't be reproduced in codesandbox, but any build that uses the abovementioned splitter.esm.js file will crash on splitter resize.

Expected behavior

No response

@kalinkrustev kalinkrustev added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 31, 2022
kalinkrustev added a commit to kalinkrustev/primereact that referenced this issue Oct 31, 2022
@mertsincan mertsincan added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Oct 31, 2022
@mertsincan mertsincan added this to the 8.7.1 milestone Oct 31, 2022
mertsincan pushed a commit that referenced this issue Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
2 participants