[BUG] WebViewPluginDemo has incorrect instructions in fallback page

The fallback page (before the npm commands are run) states an incorrect path. It says

Then navigate into the examples/GUI/WebViewPluginDemoGUI directory inside your JUCE directory, and issue the following commands.

That path should read:
examples/Plugins/WebViewPluginDemoGUI

Screenshot on tutorial page also needs updating:

Thank you for reporting this.

I updated the tutorial screenshot, but the fallback page in the repository was correct already.

1 Like

I found another bug in there, at the very end in the “Hot Reloading with the WebViewPluginDemo” section. I believe the instructions (at least on Windows) to start the localhost are

npm install
npm run-script start

instead of the mentionned npm install; npm run instructions.

It would also be helpful to mention these instructions need to be run in the JUCE/examples/Plugins/WebViewPluginDemoGUI directory.

And the very last sentence could be clearer, what “project” does this refer to?

Load the project in an IDE like VS Code, make some modifications, hit save, and the WebView contents will automatically reload.

welp, trying it on mac this morning, and sure enough these instructions work. And now trying them again on windows they also work there :person_shrugging:

You’re right, the command should be npm start. I fixed it on the website.

1 Like