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

require is not defined #42

Open
cailven opened this issue Jun 30, 2022 · 1 comment
Open

require is not defined #42

cailven opened this issue Jun 30, 2022 · 1 comment

Comments

@cailven
Copy link

cailven commented Jun 30, 2022

hi,I test the project in adobe photoshop,but the panle show nothing,in chrome broswer console show "require is not defined"
I dont know how to setup it.

@Inventsable
Copy link
Member

If you're opening localhost:8080 inside a Chrome window (not the CEF Client) you need to follow the steps in the documentation linked Use in Browser. You would open the debug port of your app noted in the .debug file in your CEF Client, not localhost:8080 (this is for iframe hot reloading of the panel, not for debugging). You would open localhost:8888 (since you chose this in prompt) in the CEF to see a console and devtools, but otherwise never need to touch localhost:8080 and just follow the steps that bombino tells you:

  • Run npm run serve
  • Restart your host application and find in Window > Extensions

Panels by default are only set up for running directly in the Adobe app. Running them in a Chrome window requires an additional step and is opt in, noted in the Use in Browser and Common Errors section of each template.

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