Skip to content

require appears to not work with useBuiltIns: usage #552

@weaverryan

Description

@weaverryan

See webpack/webpack#4039 (comment)

Found this when starting a tutorial, where I first show require and module.exports being used. Error is:

get_nice_message.js:1 Uncaught TypeError: Cannot assign to read only property 'exports' of object '#'

This normally happens if you mix require & import/export. But, that's not happening in this case. I haven't checked into the issue much yet...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions