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

Vite transforms object literal { property: null } to { property }

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

@NathanWalker がすでに取り組んでいます。

2026年4月28日 から。

評価

この issue はまだ評価されていません。

説明

in progress
Issue Description

Using null for property values isn't working correctly.

Input:

const service = {
  scanner: "sample",
  data: null
}

Compiles to:

const service = {
  scanner: "sample",
  data
}

ReferenceError: data is not defined

For now, these workarounds are functional:

const NULL_VALUE = null
const service = {
  scanner: "sample",
  data: NULL_VALUE
}


const data = null
const service = {
  scanner: "sample",
  data
}

Reproduction

No response

Relevant log output (if applicable)

Environment
OS: macOS 26.5
CPU: (10) arm64 Apple M4
Shell: /bin/zsh
node: 25.6.1
npm: 11.9.0
nativescript: Not Found (cli version 9.0.5)

# android
java: 17.0.18
ndk: Not Found
apis: Not Found
build_tools: Not Found
system_images: Not Found

# ios
xcode: /undefined
cocoapods: Not Found
python: 3.14.4
python3: 3.14.4
ruby: 3.3.11
platforms: Not Found
Dependencies
"dependencies": {
  "@nativescript-community/ui-label": "^1.3.42",
  "@nativescript/camera": "^7.0.0",
  "@nativescript/core": "~9.0.18",
  "@triniwiz/nativescript-image-cache-it": "^8.0.1",
  "@valor/nativescript-websockets": "^2.0.3",
  "nativescript-vue": "3.0.2",
  "nativescript-zeroconf": "file:./custom_modules/nativescript-zeroconf",
  "pinia": "^3.0.4",
  "radash": "^12.1.1",
  "uuidv7": "^1.2.1"
},
"devDependencies": {
  "@maikolib/vite-plugin-yaml": "^1.1.1-0",
  "@nativescript/android": "^9.0.3",
  "@nativescript/ios": "~9.0.3",
  "@nativescript/tailwind": "^2.1.1",
  "@nativescript/types": "~9.0.0",
  "@nativescript/vite": "2.0.3",
  "@types/node": "^22.19.17",
  "concurrently": "^9.2.1",
  "nativescript": "~9.0.5",
  "patch-package": "^8.0.1",
  "tailwindcss": "~3.4.19",
  "typescript": "~5.9.3",
  "wait-on": "^7.2.0"
}
Please accept these terms
主要言語
TypeScript
スター
25.7k
フォーク
1.7k
平均マージ
1日 5時間
マージ済み PR(30日)
35

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

NativeScript/NativeScript のほかの issue

NativeScript/NativeScript の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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