nuxt / vite

⚡ Vite Experience with Nuxt 2

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Content module error

xanzhu opened this issue · comments

commented

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 #213 (comment)

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

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.

Having a similar issue with nuxt-vite@0.3.4 on nuxt@2.15.8:

image

Downgrading to 0.2.4 works as a temporary solution 👍

Same issue with nuxt@2.15.8 and nuxt-vite@0.3.5.

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