We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb0b0e9 commit a67570fCopy full SHA for a67570f
packages/docs/src/components/ScssDocs.tsx
@@ -35,7 +35,11 @@ const ScssDocs = ({ file, capture }: ScssDocsProps) => {
35
const captureEnd = `// scss-docs-end ${capture}`
36
const re = new RegExp(`${captureStart}((?:.|\n)*)${captureEnd}`)
37
const captured = re.exec(_file.node.internal.content)
38
- const code = captured && captured[1].trim()
+ const code = captured ? captured[1].trim() : undefined
39
+
40
+ if (code === undefined) {
41
+ console.error(`Can't find "${capture}" in ${_file.node.relativePath}`)
42
+ }
43
44
return (
45
code && (
0 commit comments