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

[Bug]: Uncaught (in promise) TypeError: Cannot destructure property 'page' of 'undefined' as it is undefined. #173

Closed
Haunth opened this issue Nov 15, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Haunth
Copy link

Haunth commented Nov 15, 2023

Environment

Developement/Production OS: Windows 10 19043.1110
Node version: 16.0.0
Package manager: pnpm@8.6.0
Radix Vue version: 1.0.0
Shadcn Vue version: 1.0.0
Vue version: 3.0.0
Nuxt version: 3.0.0
Nuxt mode: universal
Nuxt target: server
CSS framework: tailwindcss@3.3.3
Client OS: Windows 10 19043.1110
Browser: Chrome 90.0.4430.212

Link to minimal reproduction

https://github.com/radix-vue/shadcn-vue/tree/dev/apps/www/src/lib/registry/default/ui/pagination

Steps to reproduce

Using pagination with nuxt3

Describe the bug

Bug about Pagination with nuxt3

Expected behavior

Resolve this bug

Conext & Screenshots (if applicable)

I'm using pagination with nuxt3 but I have this error. Please give me hơ to fix this
image

@Haunth Haunth added the bug Something isn't working label Nov 15, 2023
@sadeghbarati
Copy link
Collaborator

Same issue as vee-validate component export in index.ts #172

You have to explicitly import from radix-vue

import {
  PaginationRoot as Pagination,
  PaginationList,
  PaginationListItem,
} from 'radix-vue'

@Haunth
Copy link
Author

Haunth commented Nov 15, 2023

Same issue as vee-validate component export in index.ts #172

You have to explicitly import from radix-vue

import {
  PaginationRoot as Pagination,
  PaginationList,
  PaginationListItem,
} from 'radix-vue'

yes. Thanks . I'm using auto import of Nuxtjs. => import in file vue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants