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]: Unable to import { toDate } from "reka-ui/date" #1646

Open
noreld opened this issue Feb 22, 2025 · 6 comments
Open

[Bug]: Unable to import { toDate } from "reka-ui/date" #1646

noreld opened this issue Feb 22, 2025 · 6 comments
Labels
bug Something isn't working need-reproduction Issue is lacking reproduction. Will be close if not provided.

Comments

@noreld
Copy link

noreld commented Feb 22, 2025

Environment

Developement/Production OS: Windows 11
Node version: 23
Package manager: bun
Reka UI version: Latest
Vue version: 3
CSS framework: tailwindcss@3
Client OS: Windows 11
Browser: OperaGX

Link to minimal reproduction

https://reka-ui.com/docs/guides/dates

Steps to reproduce

import { toDate } from "reka-ui/date"

Describe the bug

The code copied from docs does not work. Sorry I cannot explain more meticulously because I am reporting this issue from mobile.

Expected behavior

No response

Context & Screenshots (if applicable)

No response

@noreld noreld added the bug Something isn't working label Feb 22, 2025
@zernonia
Copy link
Member

Hi @optifiire , can you provde a minimal reproduction. I just tried checking and he import seems fine.

@zernonia zernonia added the need-reproduction Issue is lacking reproduction. Will be close if not provided. label Feb 23, 2025
@noreld
Copy link
Author

noreld commented Feb 23, 2025

Hi @optifiire , can you provde a minimal reproduction. I just tried checking and he import seems fine.

I just tried reproducing it on vanilla javascript... It imports normally :

Image

But when I try to use this function on my actual project :

Image

And yes I have actually installed reka-ui package.

@noreld
Copy link
Author

noreld commented Feb 23, 2025

I wonder why do they differ.

Where problem is caused :
Image

In my test file :
Image

@zernonia
Copy link
Member

@optifiire can you share your tsconfig? 😁

@noreld
Copy link
Author

noreld commented Mar 1, 2025

@optifiire can you share your tsconfig? 😁

I don't have tsconfig, I have jsconfig instead. Here :

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    }
  },
  "exclude": ["node_modules", "dist"]
}

@noreld
Copy link
Author

noreld commented Mar 1, 2025

By the way, does unovue discord server exist? I would like to join if it does!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need-reproduction Issue is lacking reproduction. Will be close if not provided.
Projects
None yet
Development

No branches or pull requests

2 participants