nuxt / vite

⚡ Vite Experience with Nuxt 2

Home Page:https://vite.nuxtjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connot Find Module

hakanngul opened this issue · comments

Versions

nuxt-vite: ^0.3.5
nuxt: ^2.15.7

Reproduction

Connot Find Module Error

Description

When I use to vite with nuxt then import to boostrap-vue or axios or anything module, I got this error, when I remove module names on nuxt.config.js it's get better I mean it's fixing how can I solve this problem ?

2021-10-29 15_34_51-localhost_3000

Any updates on this? as still a bug on new install on Jan 21st 2022

Same as @robertocifuentes mentioned.

For me. It's Cannot find module '../nuxt.config.js'

It seems like a problem on server-side. Adding ssr: false to nuxt.config kind of solves the issue as the error does not appear.

But adding ssr: false messes half of the project since some fetches do not occur in time. Would be nice to get a more appropriate fix here.

Same issue. Any update?

commented

I'm running into the same problem...
Is this a phenomenon triggered by updates? I'm using Vite in Nuxt environment for the first time today, so I'm not sure...

My temporary solution is copy node_modules/axios/lib to node_modules/...

I am experiencing the same issue, any update?

Same issue here

I have yet to be able to use vite with any project. It starts so fast but there is just always something wrong....

Half year has gone, but still not fix? :(

Is it still doing?