-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Watchpack Error (initial scan): Error: ENOTDIR: not a directory in v3 #3322
Comments
having the same issue, did you find a workaround to fix this? |
Not yet, unlike the minimal codepen reproduction it doesn't work at all on my existing nextra site and only displays an
|
Same problem when I followed the steps here: https://nextra.site/docs/docs-theme/start |
try |
Thanks for the quick fix @dimaMachina 🙏 did this resolve the issue for you @hrougier? I am still getting these errors on 3.0.2 (build and dev server):
|
this is upstream, false positive warnings from I reported it already microsoft/TypeScript-Website#3022 maybe we should disable |
@marcklingen Yes it did resolve the Watchpack warning but I still get these 2:
and
Still experimenting to see what might be causing these errors! @dimaMachina I was about to ask you that, maybe it is possible to make twoslash optional through some configuration option? |
Not sure if worth the complexity but would be a good option for me as I do not need twoslash support |
The error about the
from Now I have other issues with soft navigation when using the |
In my case this does not affect css, page works completely fine (we use nextra + tailwind), just breaks dev-server navigation (need to try to navigate to each page twice before it actually works) and produces these logs. Production deployment looks completely fine |
I try it, and work but In my case when directly go to |
Yes, Production deployment looks completely fine. with version 3.0.2. without changing anything in |
I found how to fix warnings from |
So now it left only warnings from nextra:dev: "Value" is imported from external module "vfile" but never used in "node_modules/unified/index.d.ts".
nextra:dev: "CompileResults" is imported from external module "./lib/index.js" but never used in "node_modules/unified/index.d.ts". Reported in unifiedjs/unified#250 |
Can we reopen this issue? I still get the warning after upgrading to 3.0.7 - and it looks like other people are too |
For now I'm working with this workaround in
But this isn't ideal. |
Please share reproduction repo |
I can't share the repo itself as it's private - but I tried creating a new repo from scratch as per the instructions here - https://nextra.site/docs/docs-theme/start I followed the instructions to the letter, but when I ran
Though this seems to be a separate warning. Couldn't immediately reproduce this issue's warning on the clean repo, sorry |
@danielkleinstein I still have the same issue with 3.0.7, my fix for now is to use the pnpm patch nextra Comment the twoslash import and usage from // import { rendererRich, transformerTwoslash } from "@shikijs/twoslash";
// ...
transformers: isRemoteContent ? [] : [
// transformerTwoslash({
// renderer: rendererRich(),
// explicitTrigger: true
// })
], Commit the patch pnpm patch-commit <path> Not ideal but I don't need twoslash and it cannot be disabled right now. |
@hrougier Wow, wasn't familiar with Removing the twoslash dependency explicitly seems to solve a lot of random issues (including the missing CSS issue). |
For anyone still having this issue - Please provide a working reproduction. Without reproduction, I cannot help with fixing this issue |
I'm seeing this on this branch mnahkies/openapi-code-generator#251 (example CI failure https://github.com/mnahkies/openapi-code-generator/actions/runs/11296901214/job/31422680072)
I can try putting up a minimal reproduction tomorrow if that's better. |
@mnahkies you have a different error, which must be fixed with https://github.com/shuding/nextra/releases/tag/nextra%403.0.9 Can you confirm that it was fixed with new release? |
@dimaMachina unfortunately that build I linked was from the commit bumping to It's a fairly vanilla typescript nextra project using Also sorry I thought this was the same underlying issue as the |
@mnahkies can't reproduce locally
same result when I am on |
I'm thoroughly confused then. More info:
(I can see that your snippet above appears to be using The only way I've been able to make it work so far is unconditionally returning I put some logging in that function, and found it was getting called like so:
From: https://github.com/shuding/nextra/blob/main/packages/nextra/src/server/loader.ts#L162-L169 |
I'm wondering if this might somehow be a Linux specific thing, here's a minimal reproduction using |
@mnahkies Oops, yep, I missed to enable corepack, I can reproduce now! |
@mnahkies thanks for the contribution, fix is coming! |
@dimaMachina can confirm - that fixed it for me, thanks for such a quick turnaround! |
Describe the bug
Tried to use nextra 3.0.1 and got the following issue (reproduced in codesandbox).
To Reproduce
Start Dev Server
terminalExpected behavior
No error in terminal and a working nextra site.
Additional context
Setup from the Getting Started tutorial with the following dependencies versions
The text was updated successfully, but these errors were encountered: