vite icon indicating copy to clipboard operation
vite copied to clipboard

Connot Find Module

Open hakanngul opened this issue 4 years ago • 11 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

hakanngul avatar Oct 29 '21 12:10 hakanngul

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

cifuentesmx avatar Jan 21 '22 15:01 cifuentesmx

Same as @robertocifuentes mentioned.

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

adhamfarrag avatar Jan 24 '22 11:01 adhamfarrag

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.

benmandr avatar Jan 24 '22 13:01 benmandr

Same issue. Any update?

chalist avatar Jan 25 '22 02:01 chalist

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...

ichii731 avatar Jan 25 '22 14:01 ichii731

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

ZhengDNA avatar Feb 12 '22 14:02 ZhengDNA

I am experiencing the same issue, any update?

wizzer129 avatar Feb 26 '22 17:02 wizzer129

Same issue here

mherrero-ep avatar Mar 04 '22 12:03 mherrero-ep

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

tintin10q avatar Apr 05 '22 22:04 tintin10q

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

invisor avatar May 29 '22 16:05 invisor

Is it still doing?

hakanngul avatar Jul 25 '22 17:07 hakanngul