Skip to content

Missing extras stylesheet #83

@HazwanHassan

Description

@HazwanHassan

When using action.bat to install a theme and then running npx quartz build --serve, the build throws an error stating that extras stylesheet is missing.

Looking at the content of the 'themes' folder, there is no extras folder.

node version: 22.16.0
npm version: 10.9.2
quartz: 4.5.1
obsidian theme: minimal-dracula

❯ npx quartz build --serve

Quartz v4.5.1

✘ [ERROR] Can't find stylesheet to import.

10 │ @use "extras";
│ ^^^^^^^^^^^^^

quartz\styles\themes_index.scss 10:1 @use

  • 2:1 root stylesheet [plugin sass-plugin]

    quartz/plugins/emitters/componentResources.ts:8:19:
    8 │ import styles from "../../styles/custom.scss"
    ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~

Couldn't parse Quartz configuration: ./quartz/build.ts
TypeError [ERR_INVALID_ARG_TYPE]: The "text" argument must be of type string. Received an instance of Error
at styleText (node:util:236:3)
at file:///Obsidian%20Notebooks/quartz/quartz/cli/handlers.js:321:30
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async build (file:///Obsidian%20Notebooks/quartz/quartz/cli/handlers.js:319:20)
at async handleBuild (file:///Obsidian%20Notebooks/quartz/quartz/cli/handlers.js:355:5)
at async Object.handler (file:///Obsidian%20Notebooks/quartz/quartz/bootstrap-cli.mjs:36:5) {
code: 'ERR_INVALID_ARG_TYPE'
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions