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 not generate mockup #1

Open
hoanghiep opened this issue Sep 6, 2024 · 1 comment
Open

Can not generate mockup #1

hoanghiep opened this issue Sep 6, 2024 · 1 comment

Comments

@hoanghiep
Copy link

Hi @Raj-Srikar

I deployed it as instructed but when generating the image it gives the following error message:

script.js:209 Uncaught TypeError: e.data.indexOf is not a function
    at ppReady (script.js:209:12)

Please help. Thank you.

@Raj-Srikar
Copy link
Owner

Raj-Srikar commented Sep 6, 2024

Hi @hoanghiep

Please clarify on the below points to help diagnose the issue better:

  • Is the browser having a proper internet connection? (This is required only to load the photopea website in the iframe. Once it's loaded, the internet connection is not required, unless you reload the page)
  • What is the message that got logged just above this error in the console?

Known Issue:
Due to the new update in photopea, the newly loaded webpage is having a welcome screen, which is preventing the API from functioning.
Fix:
For now this can be fixed in the dev tools, by disabling the display property of the photopea iframe and clicking the "Start using Photopea" button inside.
However, this is just a one time issue. Once it's done, the browser will remember the decision and won't show the welcome page again, even after reload.

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

No branches or pull requests

2 participants