Skip to content

uncaught ReferenceError: require is not defined at dxc.js:1:7357 #4

Description

@farzonl

There are many node behaviors that don't seem to be guarded by ENVIRONMENT_IS_NODE

The one that is causing me issues is var nodePath = require("node:path"); There are potentially others, but this is the first one I am hitting.

All I am doing is <script src="dxc.js"></script>

Maybe my use case is incorrect. I am trying to do an in browser godbolt.

Image

Eventually could be cool to figure out how to do the lavapipe stuff aswell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions