Error when scaffolding new app - Cannot find name 'Buffer'
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- node.js, typescript
調査の方向性
Reproduce rc-apps create with the reported Node, npm, and @rocket.chat/apps-cli versions. Start with the generated app's dependency and type setup, then inspect the IUploadRead.d.ts errors and the create.js command path mentioned in the trace. Done means a fresh scaffold completes without manually installing @types/node.
索引モデルが issue の本文から書いたものです。
説明
Description
I just wanted to setup a new blank app using rc-apps create and received the following error after filling out the prompts:
❯ 216_rocketchat-app-otrs rc-apps create
Let's get started creating your app.
We need some information first:
App Name: OTRS Integration
App Description: Automatically transforms OTRS ticket IDs into clickable URLs
Author's Name: Jonas Friedmann
Author's Home Page: https://frd.mn
Author's Support Page: https://github.com/frdmn/rocketchat-app-otrs
› Error: /Users/jonas/Development/216_rocketchat-app-otrs/otrs-integration/node_modules/@rocket.chat/apps-engine/definition/accessors/IUploadRead.d.ts (4,40):
› Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i @types/node`.
› Error: /Users/jonas/Development/216_rocketchat-app-otrs/otrs-integration/node_modules/@rocket.chat/apps-engine/definition/accessors/IUploadRead.d.ts (5,41):
› Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i @types/node`.
Creating a Rocket.Chat App in /Users/jonas/Development/216_rocketchat-app-otrs/otrs-integration... !
Error: invalid.
at Create.run (/usr/local/lib/node_modules/@rocket.chat/apps-cli/lib/commands/create.js:52:19)
at async Create._run (/usr/local/lib/node_modules/@rocket.chat/apps-cli/node_modules/@oclif/command/lib/command.js:44:20)
at async Config.runCommand (/usr/local/lib/node_modules/@rocket.chat/apps-cli/node_modules/@oclif/config/lib/config.js:160:9)
at async Main.run (/usr/local/lib/node_modules/@rocket.chat/apps-cli/node_modules/@oclif/command/lib/main.js:21:9)
at async Main._run (/usr/local/lib/node_modules/@rocket.chat/apps-cli/node_modules/@oclif/command/lib/command.js:44:20)
Workaround
Running npm install @types/node within the current working directoy where the command (rc-apps create) was issues, fixes the problem.
Environment
- OS: macOS 10.15.3
- Node: v13.8.0
- NPM: 6.13.7
@rocket.chat/apps-cli: latest/1.6.0
- 主要言語
- TypeScript
- スター
- 49
- フォーク
- 40
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RocketChat/Rocket.Chat.Apps-cli のほかの issue
-
Feature Request: Add Boilerplate Templates to rc-apps create対応中かも @ShubhamS2005 が 243 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
RocketChat/Rocket.Chat.Apps-cli#181 · コメント 1 件 ·
-
Windows: rc-apps deploy fails with File 'X.ts' not found while tsc compiles successfully対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
RocketChat/Rocket.Chat.Apps-cli#177 · コメント 3 件 ·
-
Bug: Infinite loop in rc-apps watch再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
`rc-apps pack` throws error with nodejs 24再び着手できるかも @okayxsh が 231 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
RocketChat/Rocket.Chat.Apps-cli#173 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
RocketChat/Rocket.Chat.Apps-cli の issue をすべて見る
似ている issue
-
bug
難易度 2/5 半日 初心者へのやさしさ 68/100
amosblomqvist/learnharness#758 ·
メンテナーはふだん 2 日以内に返信
-
Change Workspacesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
bitfocus/companion-module-renewedvision-propresenter-api#134 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
rcpch/digital-growth-charts-react-component-library#304 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
dsh-market/dsh-market#1210 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
trustjonathan/STUDY-HUB#13 ·