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

TypeError: fetch is not a function #163

Open
YetAnotherClown opened this issue Dec 17, 2024 · 0 comments · May be fixed by #165
Open

TypeError: fetch is not a function #163

YetAnotherClown opened this issue Dec 17, 2024 · 0 comments · May be fixed by #165
Assignees
Labels
bug Something isn't working docusaurus plugin

Comments

@YetAnotherClown
Copy link
Collaborator

YetAnotherClown commented Dec 17, 2024

Issue

Incompatibility with Node v23, Node v22.12.0.

An experimental feature in Node v23 has been enabled by default, this feature changes the behavior of require() which results in an error at docusaurus-plugin-moonwave/src/generateRobloxTypes.js:9.

Temporary Fix

A temporary fix is to disable the experimental feature by setting the NODE_OPTIONS environment variable to --no-experimental-require-module, or downgrading Node to a lower version below Node v22.

Windows Example:

$env:NODE_OPTIONS='--no-experimental-require-module'; moonwave dev
@YetAnotherClown YetAnotherClown added bug Something isn't working docusaurus plugin labels Dec 17, 2024
@YetAnotherClown YetAnotherClown self-assigned this Dec 17, 2024
@YetAnotherClown YetAnotherClown linked a pull request Jan 11, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docusaurus plugin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant