ionic-team / ionic-team/rollup-plugin-node-polyfills
Can't get `__dirname` to work
- 主要言語
- JavaScript
- スター
- 142
- フォーク
- 65
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When I'm trying to use `__dirname` I get:
```
(node:2824) UnhandledPromiseRejectionWarning: Error: Could not load node-polyfills:dirname (imported by /home/sasha/rotorjs/node_modules/tman/lib/tman.js): Path must be a string without null bytes
at /home/sasha/rotorjs/node_modules/rollup/dist/rollup.js:21718:19
at
```
Null byte (`\0`) is really in [these lines](https://github.com/ionic-team/rollup-plugin-node-polyfills/blob/v0.2.1/src/index.ts#L54-L55). It was introduced in https://github.com/calvinmetcalf/rollup-plugin-node-globals/pull/3 .
See also: https://github.com/calvinmetcalf/rollup-plugin-node-globals/issues/23 .
P.S. Thanks for the fork! :)
/cc @manucorporat
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず src/index.ts の54〜55行目から始め、次にレポートに示されている __dirname のエラーを再現し、リンクされた upstream issue と比較します。__dirname を使用しても、null バイトを含むパスや node-polyfills:dirname エラーが生成されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, node.js
- 領域
- build-system, tooling
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100