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

I updated `vite-plugin-solid` and now namespaces merged with components are no longer allowed

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript, vite
領域
build-system

調査の方向性

コンポーネントとマージされた namespace を含む、提供された .tsx の例から始め、vite dev を実行して変換エラーを再現します。[email protected] と動作を比較します。現在のプラグインバージョンで、重複シンボルエラーなしに TypeScript 構文が読み込まれれば完了です。

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

説明

Describe the bug

If I create a .tsx file with this content

function A() {
    return <>1</>
}

namespace A {
    export const a = 1;
}

console.log(A);

It throws this error when I load the page (Running vite dev)

Transform failed with 1 error:
ERROR: The symbol "A" has already been declared

I tried downgrading vite-plugin-solid and it worked

npm i [email protected]

(On the playground it always works)

Your Example Website or App

(localhost)

Steps to Reproduce the Bug or Issue
  1. Put a merged namespace declaration WITH A COMPONENT somewhere
  2. Run vite dev
  3. Go to the web page
Expected behavior

I expected this allowed TS syntax to not stop working

Screenshots or Videos

No response

Platform
  • OS: Windows
  • Browser: Edge
  • Version: 120.0.2210.77
Additional context

No response

主要言語
TypeScript
スター
522
フォーク
72
平均マージ
21時間 42分
マージ済み PR(30日)
35

環境構築

はじめの一歩

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

solidjs/solid-vite-plugin のほかの issue

solidjs/solid-vite-plugin の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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