vite icon indicating copy to clipboard operation
vite copied to clipboard

Content module error

Open xanzhu opened this issue 3 years ago • 5 comments

Versions

nuxt-vite: 0.3.4 nuxt: 2.15.7

Reproduction

Clean repository, run yarn dev error when visiting localhost

Description

Content module generating error

image

Cannot find module 'html' from 'C:\Users\A1\Desktop\2102101'
Object.$id_882dd793 [as /node_modules/property-information/index.js]
Object.$id_1aea1528 [as /.nuxt/content/nuxt-content.js]

Facing same issue introduced in later version

Ref: Originally posted by @pi0 in https://github.com/nuxt/vite/issues/213#issuecomment-932742574

xanzhu avatar Oct 02 '21 23:10 xanzhu

@pi0 ya i got the same error even after upgrading to the current version

IshanKBG avatar Oct 03 '21 03:10 IshanKBG

For now you can keep using 0.2.x or use ssr: false We are working on a better solution for integration with vite ssr that hopefully solving this issue.

pi0 avatar Oct 03 '21 12:10 pi0

Having a similar issue with [email protected] on [email protected]:

image

Downgrading to 0.2.4 works as a temporary solution 👍

cossssmin avatar Oct 06 '21 10:10 cossssmin

Same issue with [email protected] and [email protected].

toniengelhardt avatar Jan 15 '22 15:01 toniengelhardt

I got the same error temporarily fixed it by installing manually e.g. Cannot find module 'svg' from -> npm i -D svg

I did this for like 5+ modules and it worked so...... yeah cheers

nopeless avatar Apr 22 '22 18:04 nopeless