Skip to content
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

node compat: cannot start docusaurus #23183

Closed
cknight opened this issue Apr 2, 2024 · 3 comments · Fixed by #23202
Closed

node compat: cannot start docusaurus #23183

cknight opened this issue Apr 2, 2024 · 3 comments · Fixed by #23202
Labels
bug Something isn't working correctly node API Related to various "node:*" modules APIs node compat

Comments

@cknight
Copy link
Contributor

cknight commented Apr 2, 2024

Version: Deno 1.42.0

I'm attempting to run Docusaurus locally, replacing npm start with deno task start. I get the following error message:

Unstable API 'Deno.FsFile.syncSync'. The `--unstable-fs` flag must be provided.

I am unable to specify the --unstable-fs flag in the deno command at any position which makes it take affect.

Related: #19395

@bartlomieju bartlomieju added bug Something isn't working correctly node compat node API Related to various "node:*" modules APIs labels Apr 3, 2024
@alexgleason
Copy link
Contributor

I ran into this issue too. Whether Docusaurus works or not, this is the problem to highlight:

I am unable to specify the --unstable-fs flag in the deno command at any position which makes it take affect.

It's not possible to pass deno flags like -A or --unstable-* when running package.json tasks.

@bartlomieju
Copy link
Member

@littledivy does #23202 fix this issue too?

@littledivy
Copy link
Member

Yes but the --unstable-fs is still required. It can be fixed by adding this to deno.json:

// deno.jsonc
{ 
  unstable: ["fs"]
}

satyarohith pushed a commit that referenced this issue Apr 11, 2024
Implement contextified objects in `node:vm`

Fixes #23186
Fixes #22395
Fixes #20607
Fixes #18299
Fixes #19395
Fixes #18315
Fixes #18319
Fixes #23183
littledivy added a commit to littledivy/deno that referenced this issue Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly node API Related to various "node:*" modules APIs node compat
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants