nuxt / vite

⚡ Vite Experience with Nuxt 2

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Internal server error: Preprocessor dependency "sass" not found. Did you install it?

xiangnanscu opened this issue · comments

Versions

nuxt-vite: latest
nuxt: latest

Reproduction

app.vue

<script setup>

</script>
<template>
  <div>
    <h1>app.vue</h1>
    <NuxtLayout>
      <NuxtPage/>
    </NuxtLayout>
  </div>
</template>

<style lang="scss">
@import "node_modules/bootstrap/scss/bootstrap.scss";
</style>

Description

run command

nuxt dev

Should not the sass preprocessor enable by default ?

vite is mainly a module builder, it should not integrate with style preprocessor i think.