question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

eisdir: illegal operation on a directory, read

See original GitHub issue

Versions

  • nuxt: v2.15.8
  • jiti: v1.12.13, v1.12.12 (v1.12.11 and v1.12.10 yield a different issue)
  • node: v16.13.0

Apparently this is Windows only:

I haven’t been able to reproduce on MacOS using node v16.3.0 (then my MacBook BSOD’d as I was going to try on v16.13.0 so I gave up using this computer for now)

Steps to reproduce

npx create-nuxt-app
npm run dev

What is expected?

Nuxt should work(?)

What is actually happening?

image

Downgrading jiti to v1.12.12 yields the same issue Downgrading jiti to v1.12.11 or v1.12.10 yield an Unexpected token 'import' issue Downgrading jiti to v1.12.9 fixes the issue

Bug is likely a regression from yesterday’s changes.

Cheers 💐

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lihbrcommented, Jan 26, 2022

Works 🎉 Thanks ♥ And yes ^^’ It’s an interesting time for ESM

1reaction
pi0commented, Jan 26, 2022

I guess guessed the issue 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

NPM stuck giving the same error EISDIR: Illegal operation on ...
EISDIR stands for "Error, Is Directory". This means that NPM is trying to do something to a file but it is a directory....
Read more >
Error: EISDIR: illegal operation on a directory, read · Issue #658
What is the current behavior? I have an project which is a react native project called th_views.rn and in the project there's a...
Read more >
NPM stuck giving the same error EISDIR: Illegal operation on ...
Windows : NPM stuck giving the same error EISDIR : Illegal operation on a directory, read at error (native) [ Beautify Your Computer ......
Read more >
EISDIR: illegal operation on a directory when enable Remote ...
Error: EISDIR: illegal operation on a directory, read at Object.readSync (fs.js:614:3) at tryReadSync (fs.js:383:20) at Object.
Read more >
eisdir: illegal operation on a directory - You.com
EISDIR stands for "Error, Is Directory". This means that yarn is trying to do something to a file but it is a directory....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found