Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#4,302 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

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:

  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
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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di framework7io/framework7

Tutte le issue di framework7io/framework7

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.