Hi, I had some issue with 'this' being undefined when loading the file using parcel.
I think it has to do with the following:
"The this keyword could be used inside functions running in non–strict mode, but this will be undefined in Modules and inside functions running in strict mode. "
Hi, I had some issue with 'this' being undefined when loading the file using parcel. I think it has to do with the following:
See here- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis#description
This solved my issue.