Module '"framework7-vue/bundle"' has no exported member 'registerComponents'
まだ誰も着手していません。
評価
- 難易度
- 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:
- Create a typescript based project with Vite
- Install Framework7-vue according to the docs
- 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 はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
framework7io/framework7 のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
framework7io/framework7#4365 · コメント 1 件 ·
-
propsHistory オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
framework7io/framework7#4347 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
framework7io/framework7#4222 · コメント 3 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
framework7io/framework7#4175 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
framework7io/framework7#3969 · コメント 3 件 ·
framework7io/framework7 の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
antfu-collective/icones#398 ·
-
ECmail.com オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
wesbos/burner-email-providers#554 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
radiantearth/stac-browser#1023 ·
-
HMR stops working オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
components-web-app/docs#92 ·