You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to add react bits to my project, using:
npx jsrepo init https://reactbits.dev/ts/default
and keep getting this error:
`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:122:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:188:5)
Node.js v20.1.0`
I had Node 20.15.0 installed, thought that may be an issue. Got nvm, installed 22.14.0, am now using that as recognized by node -v globally and in my project. Then uninstalled 20.15.0, and still get this error. Have created multiple terminals, restarted machine, cleared the cache, etc etc. The only mention of node on my system per where.exe node is in the correct new nvm path.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm trying to add react bits to my project, using:
and keep getting this error:
I had Node 20.15.0 installed, thought that may be an issue. Got nvm, installed 22.14.0, am now using that as recognized by node -v globally and in my project. Then uninstalled 20.15.0, and still get this error. Have created multiple terminals, restarted machine, cleared the cache, etc etc. The only mention of node on my system per where.exe node is in the correct new nvm path.
Any ideas? :)
Beta Was this translation helpful? Give feedback.
All reactions