Skip to content

Uncaught ReferenceError: process is not defined in ui-resource-renderer.wc.js #160

@WorldSecond

Description

@WorldSecond

When loading the MCP UI in the browser, the following runtime error occurs:

text
Uncaught ReferenceError: process is not defined
at ui-resource-renderer.wc.js:1486:1
It looks like the bundled code is assuming a Node.js-style global process object is available, but in the browser environment it is not defined. This causes the UI to fail at runtime.

Expected behavior:

The MCP UI should run in the browser without relying on the Node.js process global (or should include a proper polyfill/shim during the build step).

Environment:

Environment: Browser
File: ui-resource-renderer.wc.js
Error location: line 1486
Please let me know if you want to mention your framework, browser, or MCP UI version and I can help you slot that into the template.

1486:process.env.NODE_ENV === "production" ? WS.exports = vO() : WS.exports = hO();

Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR
ui-resource-renderer.wc.js:1486 Uncaught ReferenceError: process is not defined
at ui-resource-renderer.wc.js:1486:1
Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions