Skip to content

Unable to find the imported file or module 'events' #73

@IOIIOOIO

Description

@IOIIOOIO

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions