Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ThaDaVos opened this issue Jan 13, 2025 · 0 comments

Comments

@ThaDaVos
Copy link

ThaDaVos commented Jan 13, 2025

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant