Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate-github-markdown-css currently crashes #17

Closed
wooorm opened this issue Oct 11, 2022 · 2 comments
Closed

generate-github-markdown-css currently crashes #17

wooorm opened this issue Oct 11, 2022 · 2 comments

Comments

@wooorm
Copy link
Sponsor Contributor

wooorm commented Oct 11, 2022

import generateGithubMarkdownCss from 'generate-github-markdown-css'

const result = await generateGithubMarkdownCss()

console.log(result)
/Users/tilde/Projects/oss/starry-night/node_modules/css/lib/parse/index.js:62
    var err = new Error(options.source + ':' + lineno + ':' + column + ': ' + msg);
              ^

Error: undefined:1:2672: missing '}'
    at error (/Users/tilde/Projects/oss/starry-night/node_modules/css/lib/parse/index.js:62:15)
    at declarations (/Users/tilde/Projects/oss/starry-night/node_modules/css/lib/parse/index.js:260:26)
    at rule (/Users/tilde/Projects/oss/starry-night/node_modules/css/lib/parse/index.js:561:21)
    at rules (/Users/tilde/Projects/oss/starry-night/node_modules/css/lib/parse/index.js:118:70)
    at stylesheet (/Users/tilde/Projects/oss/starry-night/node_modules/css/lib/parse/index.js:81:21)
    at module.exports [as parse] (/Users/tilde/Projects/oss/starry-night/node_modules/css/lib/parse/index.js:565:20)
    at getCSS (file:///Users/tilde/Projects/oss/starry-night/node_modules/generate-github-markdown-css/index.js:287:19)
    at async file:///Users/tilde/Projects/oss/starry-night/example.js:3:16 {
  reason: "missing '}'",
  filename: undefined,
  line: 1,
  column: 2672,
  source: '.Button-label{line-height:1.66667;line-height:var(--primer-text-body-lineHeight-small,1.66667)}.Button-content>:not(:last-child){margin-right:4px;margin-right:var(--primer-control-small-gap,4px)}}.Button--large{gap:8px;gap:var(--pr...

Maybe GH is currently shipping broken CSS? Or using some fancy new CSS feature that css doesn’t understand yet?

$ npm ls css
@wooorm/starry-night@1.3.0 /Users/tilde/Projects/oss/starry-night
├── css@3.0.0
└─┬ generate-github-markdown-css@5.0.1
  └── css@3.0.0 deduped
wooorm added a commit to wooorm/starry-night that referenced this issue Oct 11, 2022
@hyrious
Copy link
Collaborator

hyrious commented Oct 11, 2022

Yes, it seems that they published a minified SCSS file.

community/community#35511

@hyrious
Copy link
Collaborator

hyrious commented Feb 7, 2023

Seems ok now.

@hyrious hyrious closed this as completed Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants