Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Alert user when they're using functions + unsupported Node versions

オープン
#5,012 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
cli

調査の方向性

ntl dev のフローから開始し、edge functions とプロジェクトの Node.js バージョンがどのように検出されるかを特定します。リンクされている Lambda@Edge の制限に関するドキュメントで AWS がサポートするバージョンを確認し、そのうえで警告の動作を定義し、サポートされていないバージョンが使用された場合にデプロイ前に警告が表示されることを検証します。

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

説明

area: command: dev area: functions type: feature
Which problem is this feature request solving?

When my project was using new Node 18 APIs:

  • functions would work locally using the CLI
  • deploys would fail

This is because AWS doesn’t support Node 18 (at the moment of running the CLI).

Downgrading to Node 16 fixed it.

Describe the solution you'd like

A great developer experience would have been to know about this version incompatibility prior to deploying.

Perhaps the CLI could tell users when they’re using edge functions in conjunction with versions of Node.js that aren’t supported?

For example:

> ntl dev

  Running Netlify Functions with an unsupported version of Node.js (18) and may not deploy as expected.
  Consider using a version of Node.js listed in https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html#lambda-at-edge-function-restrictions
  (To hide this message... /* provide way to dismiss the message for this project? */)
Pull request (optional)
  • I can submit a pull request.
主要言語
TypeScript
スター
1.9k
フォーク
480
平均マージ
1日 15時間
マージ済み PR(30日)
66

環境構築

はじめの一歩

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

netlify/cli のほかの issue

netlify/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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