-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
error Cannot set properties of undefined (setting 'Papa') #975
Comments
What is the error? How we can reproduce? Why it happens on such libraries and not on others? |
From the globalThis docs:
From the strict mode docs on MDN:
I'm not sure what framework environments do not support |
I found vite docs re: strict mode.
|
To answer your first question: the error message is in the title:
|
Reproduce this with open-wc.org - lit Typescript boilerplate. importing in .ts files I |
This happens when using Papaparse, Astro, & vite.
The problem is
this
isundefined
.globalThis
is the value that we want to use.https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis
The text was updated successfully, but these errors were encountered: