Skip to content

import path from "path" results in undefined #961

Description

@fregante

I'm using @swc-node/register@1.10.10 via Nx and somehow this prints undefined in one of my .ts files:

import path from "path" // or "node:path"

console.log(path)

What could be the reason?

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