Open rafaelbdb opened 1 year ago
Can you repeat the same problem with latest Deno release?
I'm getting a similar error when I run deno task dev. I was following this video.
➜ deno-react-go-server -> deno task dev
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:1831:16)
at ext:deno_node/_fs/_fs_readdir.ts:35:22
at eventLoopTick (ext:core/01_core.js:182:11)
@Anan7Codes your issue seems to be a problem with filesystem permission on your machine, so it's not strictly related to Deno. Make sure that the user you are running with has read and write access to the whole project directory.
@Anan7Codes your issue seems to be a problem with filesystem permission on your machine, so it's not strictly related to Deno. Make sure that the user you are running with has read and write access to the whole project directory.
Cool I'll try it once again though when I ran the command the first time it worked. I couldn't see the webpage on default url localhost:5173. I closed it by pressing ctrl + c and then when I ran deno task dev again, I started receiving this error.
Try removing the created node_modules
directory and let me know if the problem persists. Which Deno version are you using?
I had this problem using MX Linux. I "solved" it by using Kubuntu. A bit drastic, but worked. Go figure...
Try removing the created
node_modules
directory and let me know if the problem persists. Which Deno version are you using?
Tried deleting node_modules. Getting the same error. I'm using v1.34.0.
I get the same error when deno dev
with project created by npm:create-vite-extra
as per official docs.
deno --version
deno 1.34.3 (release, aarch64-apple-darwin)
v8 11.5.150.2
typescript 5.0.4
I get the same error . but, it ok when i use deno 1.34.1
deno --version deno 1.34.3 (release, x86_64-apple-darwin) v8 11.5.150.2 typescript 5.0.4
My config (MX Linux 21.3):
Trying to follow the tutorial here: https://www.youtube.com/watch?v=MDPauM8fZDE https://github.com/denoland/examples/tree/main/with-vue
I get the error:
My 'deno.json' file:
My 'vite.config.mts' file:
My 'src/main.ts' file
I didn't change anything in those 3 files. They were generated by Deno.
I suppose there is a version issue somewhere, but I've already searched Google (and even tried ChatGPT) for hours, and can't figure out what is causing the issue.