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
This is an old project that was previously working. I have tried deleting my node_modules directory and reinstalled packages - but still the same error.
The text was updated successfully, but these errors were encountered:
The above does not solve the problem, at least in Node 16.13.0. It gets rid of the runtime error but then the players don't load. To use the events npm package, which matches the Node.js 11.13.0 API, the import should be:
On compilation I receive the following error:
Unable to find the imported file or module 'events'.
the source of the error is on
line 2
ofindex.js
:const EventEmitter = require('events').EventEmitter
.This is an old project that was previously working. I have tried deleting my
node_modules
directory and reinstalled packages - but still the same error.The text was updated successfully, but these errors were encountered: