Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Nuxt date-fns support #51

Closed
pushpak1300 opened this issue Feb 28, 2021 · 1 comment
Closed

Nuxt date-fns support #51

pushpak1300 opened this issue Feb 28, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@pushpak1300
Copy link

Versions

nuxt-vite: 0.0.18
nuxt: 2.15.2

Reproduction

https://github.com/pushpak1300/pushpak1300.github.io

Description

The client and server is getting compiled when I run npm run dev
But showing an error in the console
Uncaught SyntaxError: The requested module '/@fs/home/pushpak1300/Desktop/projects/javascript/pushpak1300.github.io/node_modules/.cache/vite/client/date-fns.js?v=25441ce8' does not provide an export named 'default'

Apart from this everything is working as expected
Output for build

   ╭───────────────────────────────────────────────────────╮
   │                                                       │
   │   Nuxt @ v2.15.2                                      │
   │                                                       │
   │   ▸ Environment: development                          │
   │   ▸ Rendering:   client-side                          │
   │   ▸ Target:      static                               │
   │                                                       │
   │   Listening: http://localhost:3000/                   │
   │                                                       │
   │   ⚡  Vite Mode Enabled (v0.0.18)                     │
   │   Tailwind Viewer: http://localhost:3000/_tailwind/   │
   │                                                       │
   ╰───────────────────────────────────────────────────────╯

ℹ Preparing project for development                                                                                                         11:03:28
ℹ Initial build may take a while                                                                                                            11:03:28
ℹ Discovered Components: .nuxt/components/readme.md                                                                                         11:03:28
✔ Builder initialized                                                                                                                       11:03:28
✔ Nuxt files generated                                                                                                                      11:03:29
✔ Client compiled successfully in 0.036s                                                                                                    11:03:29
✔ Server compiled successfully in 0.048s                                                                                                    11:03:29
ℹ Waiting for file changes                                                                                                                  11:03:29
ℹ Memory usage: 89.9 MB (RSS: 190 MB)                                                                                                       11:03:29
ℹ Listening on: http://localhost:3000/      
@pi0
Copy link
Member

pi0 commented Feb 28, 2021

Hi @pushpak1300. Issue with date-fns, is fixed in v19. But i've made #56 to track general vite issue and workaround.

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

No branches or pull requests

2 participants