FredKSchott / FredKSchott/rollup-plugin-polyfill-node

Error: 'homedir' is not exported by polyfill-node.os.js, imported by src/constant.ts

Open
#52 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
193
Forks
60
PR merge metrics
No merged PRs in 30d

Description

I'm using 0.9.0 and seeing this error when I bundle.
~~~ts
2: import { homedir as homeDir } from 'os';
^
Error: 'homedir' is not exported by polyfill-node.os.js, imported by src/constant.ts
~~~

homedir is a function that returns the string path of the current user's home directory.

I'd like to submit a PR to resolve this problem soon.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.