bug: Cannot access uninitialized variable, only in Safari, works with dev build #5785
Closed
3 tasks done
Labels
ionitron: needs reproduction
This PR or Issue does not have a reproduction case URL
Prerequisites
Stencil Version
4.18.2 to 3.4.1
Current Behavior
In Safari (16.X, 17.X) on either Mac or iOS a white screen is shown. Page renders fine on Mac Chrome or on any browser in Windows.
In the console errors this error is thrown:
Unhandled Promise Rejection: ReferenceError: Cannot access uninitialized variable
inindex.js:1867
which refers tostencil/src/runtime/initialize-component.ts
Line 47 in 5a82d01
Expected Behavior
Page is rendered successfully in Safari. Or a more clear error message of the situation.
System Info
Steps to Reproduce
I sadly do not have a MVP at this time.
Code Reproduction URL
Additional Information
I first had this problem with StencilJS 3.4.1 and Ionic 6. Also I thought that PR #5762 would help me debug this situation, but it does not help.
I have tried the following with various results:
For me it seems odd that the dev build works fine, but not the prod build. Additionally, currently seems that the bundling is the issue, but how?
The text was updated successfully, but these errors were encountered: