battleaxedotco / brutalism

Battleaxe's component library for Adobe CEP panels
https://battleaxe.dev/brutalism-docs/
MIT License
91 stars 12 forks source link

require is not defined #42

Open cailven opened 2 years ago

cailven commented 2 years ago

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 commented 2 years ago

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:

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.