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

support nodejs v18 #189

Closed
jasonHzq opened this issue Aug 20, 2024 · 1 comment · Fixed by #206
Closed

support nodejs v18 #189

jasonHzq opened this issue Aug 20, 2024 · 1 comment · Fixed by #206

Comments

@jasonHzq
Copy link

jasonHzq commented Aug 20, 2024

running command as below:

srcbook start

cli throw error messages:

~/.nvm/versions/node/v18.17.0/lib/node_modules/srcbook/node_modules/@srcbook/shared/dist/src/utils.js:3
    const bytes = crypto.getRandomValues(new Uint8Array(byteSize));
                  ^

ReferenceError: crypto is not defined
    at randomid (~/.nvm/versions/node/v18.17.0/lib/node_modules/srcbook/node_modules/@srcbook/shared/dist/src/utils.js:3:19)
    at ~/.nvm/versions/node/v18.17.0/lib/node_modules/srcbook/lib/db/schema.mjs:13:66

I see your document nodejs version requirements is v20+. can you support nodejs v18.

@jasonHzq jasonHzq changed the title nodejs version compatible ranges support nodejs v18 Aug 20, 2024
@nichochar
Copy link
Contributor

Yeah, we're aware of this. For now, can you use node 20+? We recommend using https://github.com/nvm-sh/nvm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants