Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

ios - safari & chrome - app will not open - unexpected eof on polyfills promisReactionJob


Updated from Metronic 7.0.4 Angular 9.1.3 to Metronic 8.1..4 Angular 14.0.0.

App works fine on windows PC. on IOS, safari & chrome - app will not open - unexpected eof on polyfills. promisReactionJob

Thank you
Chris

Please provide a link to a minimal reproduction of the bug
Will not load app on IOS Angular 14.0.0
https://app.shippingwonder.com/

Works on IOS compiled with Angular 9.1.3
https://app.empowerhope.ai/

Please provide the exception or error you saw
Browse console.
main.5659117c88ca3009.js:2 ERROR SyntaxError: JSON Parse error: Unexpected EOF

polyfills.7fca551addd8edc8.js:2 SyntaxError: JSON Parse error: Unexpected EOF


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi Chris

Have you made any modifications to the Angular code? Could you please try to do the tests using the default Metronic Angular app if this issue still happens?

Thanks



Hi thank you for the reply. Earlier I did as you suggested. I found the default Metronic Angular app worked fine. After many hours of testing, I find the code with a problem in my layout-config.service.

This line fails in IOS
return JSON.parse("")

I changed it to the command below and works fine now.
return JSON.parse('{}')

Thank you



Glad you have resolved it.

Thanks


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(