Skip to content

import path from "path" results in undefined #961

@fregante

Description

@fregante

I'm using @swc-node/[email protected] 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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions