SyntaxError: The requested module 'node:stream' does not provide an export named 'getDefaultHighWaterMark'
Closed this issue · 1 comments
pixelnbyte commented
Error ID
6549e2fb-59fc-4514-bb8f-bee609803769
What happened?
After running npx ggt@latest dev ~/gadget/name-of-app --app=name-of-app --env=development
I get the following error:
An unexpected error occurred.
node_modules/execa/lib/transform/generator.js:1
import {Transform, getDefaultHighWaterMark} from 'node:stream';
^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: The requested module 'node:stream' does not provide an export named 'getDefaultHighWaterMark'
This is a bug, use the link below to create an issue on GitHub.
https://github.com/gadget-inc/ggt/issues/new?template=bug_report.yml&error-id=867b1a07-1cfe-4deb-ba06-8263ceb71338
What did you expect to happen?
I expected the gadget project to be cloned.
Steps to reproduce
- npx ggt@latest dev ~/gadget/name-of-app --app=name-of-app --env=development
- Need to install the following packages: ggt@1.0.3 Ok to proceed (y) - Press y enter.
- Error shws up.
Anything else?
No response
pixelnbyte commented
Upgrading from node 18 to 20 resolved the issue. Thanks.