Module '"framework7-vue/bundle"' has no exported member 'registerComponents'
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 52/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- typescript, vite
- Ambito
- frontend
Direzione di ricerca
Riproduci la configurazione Vite TypeScript dell’issue e ispeziona src/main.ts insieme alla dichiarazione framework7-vue.d.ts, dove registerComponents è indicato come mancante. Conferma che l’import del bundle documentato e la relativa definizione dei tipi corrispondano, quindi verifica che l’import non produca alcun errore TypeScript senza un commento di ignoramento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
- 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
- Lingua principale
- JavaScript
- Stelle
- 18.8k
- Fork
- 3.2k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di framework7io/framework7
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
framework7io/framework7#4365 · 1 commento ·
-
propsHistory Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
framework7io/framework7#4347 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
framework7io/framework7#4222 · 3 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
framework7io/framework7#4175 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
framework7io/framework7#3969 · 3 commenti ·
Tutte le issue di framework7io/framework7
Issue simili
-
Update HugeIcons library Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
antfu-collective/icones#398 ·
-
ECmail.com Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
wesbos/burner-email-providers#554 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
radiantearth/stac-browser#1023 ·
-
HMR stops working Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
components-web-app/docs#92 ·