when trying to change the template to use nodejs20.x the build is failed
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- aws, nodejs, typescript
- 領域
- build-system, cloud, devtools
調査の方向性
この issue では、TypeFunction の TypeScript ビルドパスとして npm run build、npx tsc、sam build が示されています。まず Node.js 20 のビルドを再現し、ランタイムを選択する template と build 設定を調べてください。Node.js 20 の template で npm install と sam build が EROFS または TS5033 エラーなしに完了すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I am trying to create resource provider using Typescipt. I saw that the template is using node 14 - which is very old.
i have tried to use node 20. however cfn submit fail with error
command '['npm install --include=optional && sam build --debug --build-dir /Users/liraz/work/skywalker/server/netapp-cfn/export-policy/build --use-container TypeFunction']' returned non-zero exit status 1.
when running the npm install explicitly i am getting an error
Error: NodejsNpmBuilder:NpmPack - NPM Failed: npm notice
npm notice New patch version of npm available! 10.2.3 -> 10.2.5
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.5>
npm notice Run npm install -g npm@10.2.5to update!
npm notice
npm ERR! code 2
npm ERR! path /tmp/samcli/source
npm ERR! command failed
npm ERR! command sh -c npm run build
npm ERR! > netapp-fsx-svmpeer@0.1.0 build
npm ERR! > npx tsc
npm ERR!
npm ERR! error TS5033: Could not write file '/tmp/samcli/source/dist/handlers.js': EROFS: read-only file system, open '/tmp/samcli/source/dist/handlers.js'.
npm ERR! error TS5033: Could not write file '/tmp/samcli/source/dist/models.js': EROFS: read-only file system, open '/tmp/samcli/source/dist/models.js'.
npm ERR! npm WARN config optional Use--omit=optionalto exclude optional dependencies, or
npm ERR! npm WARN config--include=optionalto include them.
npm ERR! npm WARN config
npm ERR! npm WARN config Default value does install optional deps unless otherwise omitted.
npm ERR! npm WARN config optional Use--omit=optionalto exclude optional dependencies, or
npm ERR! npm WARN config--include=optional` to include them.
npm ERR! npm WARN config
npm ERR! npm WARN config Default value does install optional deps unless otherwise omitted.
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-12-07T21_50_45_696Z-debug-0.log
➜ cfnrp npm install --include=optional && sam build --debug --build-dir /Users/liraz/work/cfnrp/build --use-container TypeFunction
npm WARN config optional Use --omit=optional to exclude optional dependencies, or
npm WARN config --include=optional to include them.
npm WARN config
npm WARN config Default value does install optional deps unless otherwise omitted.
`
moving back to node14 and all is fine
- 主要言語
- TypeScript
- スター
- 46
- フォーク
- 18
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aws-cloudformation/cloudformation-cli-typescript-plugin のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
aws-cloudformation/cloudformation-cli-typescript-plugin#136 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
aws-cloudformation/cloudformation-cli-typescript-plugin#132 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
aws-cloudformation/cloudformation-cli-typescript-plugin#115 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
aws-cloudformation/cloudformation-cli-typescript-plugin#113 ·
-
aws-cloudformation/cloudformation-cli-typescript-plugin#103 · コメント 1 件 · 担当者 1 名 ·
aws-cloudformation/cloudformation-cli-typescript-plugin の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
bcgov/bc-wallet-mobile#4761 · コメント 1 件 ·
-
external-issue to-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
area-deployment area-integrations triage:bot-seen
難易度 2/5 半日 初心者へのやさしさ 86/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100