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 of index.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.