Issue with npm Buffer dependency in DecodeStream.js

オープン
#53 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, react, typescript
領域
tooling

調査の方向性

報告されている node_modules/restructure パスから参照されている src/DecodeStream.js から始め、記載されているパッケージバージョンでブラウザビルドを再現します。React、TypeScript、Ionic アプリケーションのコンテキストで Buffer が利用できない理由を追跡します。報告されたアプリで “Buffer is not defined” が発生しなくなり、サポートされるパッケージバージョンまたは互換性の動作が確立されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I have the restructure 2.0.0 package as part of my package.json file. When I attempt to run my app, I get the error below. I am creating a React app using Typescript and Ionic. How can I fix a dependency problem like this which is inside the node_modules folder itself? In package.json I have restructure set as version ^2.0.0 but I have also tried ^3.0.0 with the same results.

Uncaught ReferenceError: Buffer is not defined
at ./node_modules/restructure/src/DecodeStream.js

主要言語
JavaScript
スター
146
フォーク
37
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

foliojs/restructure のほかの issue

foliojs/restructure の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。