examples icon indicating copy to clipboard operation
examples copied to clipboard

React example does not work

Open andrew-goldie opened this issue 1 year ago • 3 comments

Following first part of React example using deno version 1.32.5 on MacOS Ventura 13.3.1.

deno run --allow-env --allow-read --allow-write npm:create-vite-extra

Selected deno-react template and TypeScript variant.

cd into newly scaffolded project and run

deno task dev

The following error is displayed:

Task dev deno run -A --node-modules-dir npm:vite
error: Uncaught Error: EPERM: operation not permitted, readdir
    at __node_internal_captureLargerStackTrace (ext:deno_node/internal/errors.ts:89:11)
    at __node_internal_uvException (ext:deno_node/internal/errors.ts:182:12)
    at denoErrorToNodeError (ext:deno_node/internal/errors.ts:1826:16)
    at ext:deno_node/_fs/_fs_readdir.ts:35:22
    at eventLoopTick (ext:core/01_core.js:165:11)

andrew-goldie avatar Apr 25 '23 22:04 andrew-goldie

got the same issue on windows 11

Task dev deno run -A --node-modules-dir npm:vite
error: Uncaught Error: EINVAL: invalid argument, stat
    at __node_internal_captureLargerStackTrace (ext:deno_node/internal/errors.ts:89:11)
    at __node_internal_uvException (ext:deno_node/internal/errors.ts:182:12)
    at denoErrorToNodeError (ext:deno_node/internal/errors.ts:1826:16)     
    at ext:deno_node/_fs/_fs_stat.ts:83:97
    at eventLoopTick (ext:core/01_core.js:165:11)

r3alfar avatar Apr 26 '23 09:04 r3alfar

Got the same issue as @r3alfar, also on Windows 11 and for the vue example

timgoeller avatar Apr 30 '23 19:04 timgoeller

Same issue on windows 11.

I have to say the error isn't too helpful either.

As you can tell, the error is coming from the source of the recent node-deno configuration.

Task dev deno run -A --unstable --node-modules-dir npm:vite
error: Uncaught Error: EINVAL: invalid argument, stat
    at __node_internal_captureLargerStackTrace (ext:deno_node/internal/errors.ts:89:11)
    at __node_internal_uvException (ext:deno_node/internal/errors.ts:182:12)
    at denoErrorToNodeError (ext:deno_node/internal/errors.ts:1826:16)
    at ext:deno_node/_fs/_fs_stat.ts:83:97
    at eventLoopTick (ext:core/01_core.js:181:11)

RileySeaburg avatar May 14 '23 13:05 RileySeaburg