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

Module '"framework7-vue/bundle"' has no exported member 'registerComponents'

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

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

評価

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

調査の方向性

issue の Vite TypeScript セットアップを再現し、registerComponents が不足していると報告されている framework7-vue.d.ts の宣言と併せて src/main.ts を調査します。ドキュメントに記載された bundle の import とその型定義が一致していることを確認し、ignore コメントなしで import に TypeScript エラーが発生しないことを検証します。

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

説明

  • Framework7 version: 8.3.4
  • Vue.js version: 3.5.13
  • Platform and Target: [e.g. iOS 11 Cordova app, or Android 8 Chrome browser] Browser
  • Live Link or CodeSandbox: My own codesandbox based on my project - see src\main.ts
Describe the bug

A clear and concise description of what the bug is.

I created a clean Vue 3 project using vite, added Framework7 according to the docs - but it's giving me an import error, I checked the exported bundle and it seems registerComponents isn't exported - at least, not in the framework7-vue.d.ts as typing - which is giving errors in Typescript based projects.

To Reproduce

Steps to reproduce the behavior:

  1. Create a typescript based project with Vite
  2. Install Framework7-vue according to the docs
  3. See import error
Expected behavior

A clear and concise description of what you expected to happen.

No import error

Actual Behavior

Explain what is actually happening

Import error - needing to use comments to tell typescript to ignore the missing type

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Can be circumvented by adding a comment like below:

// @ts-expect-error registerComponents is missing from the typescript definition
主要言語
JavaScript
スター
18.8k
フォーク
3.2k
PR マージ指標
30日以内にマージされた PR はありません

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

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

はじめの一歩

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

framework7io/framework7 のほかの issue

framework7io/framework7 の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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