epicweb-dev / web-forms

Learn the primary mechanism for interactivity on the web.
https://www.epicweb.dev/workshops/professional-web-forms
Other
199 stars 61 forks source link

The requested module 'node:events' does not provide an export named 'addAbortListener' #46

Closed B4mb0o0 closed 5 months ago

B4mb0o0 commented 5 months ago

Hi, when i execute "npm run setup" got this error:

...../web-forms/epicshop/node_modules/@epic-web/workshop-utils/node_modules/execa/lib/utils/max-listeners.js:1

import {addAbortListener} from 'node:events';

SyntaxError: The requested module 'node:events' does not provide an export named 'addAbortListener' at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21) at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

Node.js v18.17.1 🚨 Failure: Custom Setup. Please review the messages above for information on how to troubleshoot and resolve this issue. Waiting for the debugger to disconnect...

kentcdodds commented 5 months ago

Looks like I upgraded a dependency that requires Node 20. Could you upgrade to node 20 and verify it works?

B4mb0o0 commented 5 months ago

Node version installed: v20.14.0.

it works! @kentcdodds

kentcdodds commented 5 months ago

Thank you! I think I'll probably want to bump the minimum node requirement.

kentcdodds commented 5 months ago

Done! Thanks!