Skip to content

TypeError: Cannot add property source, object is not extensibleΒ #57030

Closed
@bouzlibop

Description

@bouzlibop

Version

v23.7.0

Platform

Darwin MacBookPro.T-Mobile 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000 arm6

Subsystem

No response

What steps will reproduce the bug?

To reproduce the issue try running the synchronous version of the transpilation example.

How often does it reproduce? Is there a required condition?

100%

What is the expected behavior? Why is that the expected behavior?

I would expect the code from the API docs to run without any errors.

What do you see instead?

node:internal/modules/esm/load:173
    context.source = source;
                   ^

TypeError: Cannot add property source, object is not extensible

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.loadersIssues and PRs related to ES module loaders

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions