Skip to content

[node_experimental] Using npm module with a dependency on a node standard library #328

@silverpill

Description

@silverpill

Hello!

When imported npm module attempts to import a standard module such as fs, an error occurs:

Relative import path "fs" not prefixed with / or ./ or ../

Import from "node:fs" works as expected, but I have no control over the npm module. I tried to implement custom ImportProvider, but it appears that the error occurs before ImportProvider::resolve is called.

rustyscript version: 0.11.0

A similar problem was reported by @utyfua in #147 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions