wooorm / starry-night

Syntax highlighting, like GitHub
MIT License
1.45k stars 30 forks source link

TypeError: Cannot read properties of undefined (reading 'Registry') #19

Closed adiathasan closed 1 year ago

adiathasan commented 1 year ago

while initializing createStarryNight

  createStarryNight(grammars).then((x) => {
                starryNight = x;

                const missing = starryNight.missingScopes();

                if (missing.length > 0) {
                    throw new Error("Missing scopes: `" + missing + "`");
                }

  })

Stack trace:

image
wooorm commented 1 year ago

Needs more info...