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

Can't find variable: _defineProperty on Safari <=15.3 since updating db version >=v1.0.30001561 #6991

Open
jeffprinty opened this issue Mar 1, 2024 · 0 comments

Comments

@jeffprinty
Copy link

jeffprinty commented Mar 1, 2024

We are building a production react app (v 16.14.0), bootstrapped with create-react-app, using caniuse via caniuse-lite via browserslist.
We recently did the recommended browserslist update of the caniuse db which caused our bundle to error for users on Safari 15.3. We tried explicitly including Safari 14+ in the browserslist config and rebuilding, this did not solve the issue.

The build works on old Safari with caniuse version 1.0.30001559
There is an error if built with caniuse version 1.0.30001561
it also errors (as of 2024-02-29) on the latest version: 1.0.30001591

ReferenceError: Can't find variable: _defineProperty -- index.esm.js - react-dom.production.min.js
ReferenceError: Can't find variable: _defineProperty -- onmessage - scheduler.production.min.js

Screen Shot 2024-02-29 at 8 43 59 PM
(the only way I could test was on a very old Mac Mini, but the bundle error is the same as it was on Safari 15.3)

We have solved this temporarily by explicitly specifying version 1.0.30001559 of caniuse in package-lock.json and we will refrain from updating the caniuse db until another workaround is found.

I apologize if this isn't the correct place for this feedback, I wanted to put it out there in case anyone else is experiencing this.

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

No branches or pull requests

2 participants