-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Running examples #5888
Comments
You still need: cd engine
npm install
npm run build |
I cannot reproduce on my system, so I will answer based on this error: [0] [0] [!] Error: EISDIR: illegal operation on a directory, read
[0] [0] Error: EISDIR: illegal operation on a directory, read
[0] [0] at Object.readSync (node:fs:757:3)
[0] [0] at tryReadSync (node:fs:438:20)
[0] [0] at Object.readFileSync (node:fs:484:19)
[0] [0] at Object.<anonymous> (E:\dev\playcanvas\esm\engine\examples\rollup.config.js:549:35) The only if (ENGINE_PATH) {
const src = path.resolve(ENGINE_PATH);
const content = fs.readFileSync(src, 'utf8'); Can you spawn a JS Debug Session and see what values you are getting here by adding a You can go ahead with F10 and inspect along the way: Are you on HEAD? |
Thank you @LeXXik So I can reproduce now via e.g. The |
It seems like your browser reports as supporting queries, but does not implement them. Try commenting out this line from the webgpu-graphics-device.js:
|
Nevermind, I was loading, while it was building. Commenting that line out loads WebGPU example fine. |
@kungfooman I was trying to get rid of all those pesky thumbnail-not-found errors. Is
|
engine/examples/scripts/thumbnails.mjs Lines 76 to 92 in be04946
Looks like line 82 - serve process can't be started. So that seems to work on Linux, but not Windows and I'm not sure why - could you try rewriting it into: const server = spawn('npx', ['serve', 'dist', '-l', port, '--no-request-logging', '--config', '../serve.json']); ? IMO we need some kind of download script for thumbnails, the thumbnail generation takes quite some time... in the meantime, you can download them here: https://github.com/playcanvas/playcanvas.github.io/tree/main/thumbnails Edit: maybe the easiest way is to replace |
@kungfooman hmm, didn't work: On the same note - the original method worked under Ubuntu, though. |
This one worked for me: const npx = /^win/.test(process.platform) ? 'npx.cmd' : 'npx';
const server = spawn(npx, ['serve', 'dist', '-l', port, '--no-request-logging', '--config', '../serve.json']); |
I can't seem to start the examples. After using
npm install
andnpm run develop
, I get the following error (Win11, VSCode, bash):The text was updated successfully, but these errors were encountered: