-
-
Notifications
You must be signed in to change notification settings - Fork 726
Closed
Description
Environment
- Operating System:
Darwin - Node Version:
v17.3.1 - Nuxt Version:
3.0.0-rc.3-27571095.9379606 - Package Manager:
[email protected] - Builder:
vite - User Config:
extends,buildModules,build,ssr - Runtime Modules:
- - Build Modules:
@nuxt/[email protected]
Reproduction
I've started incorporating nuxt/modules into my nuxt3 project. I am unable to build (SSR false or true) I get the following error
$ nuxi build
Nuxt CLI v3.0.0-rc.3-27571095.9379606 17:44:38
✔ Using ~/components/content for components in Markdown @nuxt/content 17:44:39
ℹ Vite client warmed up in 789ms 17:44:41
ℹ Client built in 2677ms 17:44:43
ℹ Building server... 17:44:43
✔ Server built in 1068ms 17:44:44
✔ Generated public .output/public nitro 17:44:44
ℹ Initializing prerenderer nitro 17:44:44
ℹ Prerendering 4 routes nitro 17:44:45
├─ / (8ms) nitro 17:44:45
├─ /200 (1ms) nitro 17:44:45
├─ /404 (0ms) nitro 17:44:45
├─ /api/_content/cache (149ms) nitro 17:44:46
start Building server... nitro 17:44:46
ERROR Rollup error: Unexpected token (Note that you need plugins to import files that are not JavaScript) nitro 17:44:46
ERROR Unexpected token (Note that you need plugins to import files that are not JavaScript) 17:44:46
at error (node_modules/rollup/dist/es/shared/rollup.js:1840:30)
at Module.error (node_modules/rollup/dist/es/shared/rollup.js:12528:16)
at Module.tryParse (node_modules/rollup/dist/es/shared/rollup.js:12905:25)
at Module.setSource (node_modules/rollup/dist/es/shared/rollup.js:12810:24)
at ModuleLoader.addModuleSource (node_modules/rollup/dist/es/shared/rollup.js:22284:20)
error Command failed with exit code 1.Describe the bug
if I comment out the following line in nuxt.config file then I'm able the error is gone
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: ['@nuxt/content'], // commenting out this line fixes the issue
})Additional context
No response
Logs
No response
Metadata
Metadata
Assignees
Labels
No labels