Skip to content

node-resolve throwing error when there are node:* imported. #40

@benzsuankularb

Description

@benzsuankularb

Error occured when build using node-resolve and the source code have any node:* imported.
i.e. node:fs

Error: Build failed with 3 errors:
../../../../node_modules/.pnpm/@helia+unixfs@1.4.1/node_modules/@helia/unixfs/dist/src/utils/glob-source.js:1:15: ERROR: Plugin "node-resolve" returned a non-absolute path: node:fs (set a namespace if this is not a file path)
../../../../node_modules/.pnpm/@helia+unixfs@1.4.1/node_modules/@helia/unixfs/dist/src/utils/glob-source.js:2:16: ERROR: Plugin "node-resolve" returned a non-absolute path: node:fs/promises (set a namespace if this is not a file path)
../../../../node_modules/.pnpm/@helia+unixfs@1.4.1/node_modules/@helia/unixfs/dist/src/utils/glob-source.js:3:17: ERROR: Plugin "node-resolve" returned a non-absolute path: node:path (set a namespace if this is not a file path)

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