Search code examples
javascripttypescriptvue.jsmarkdownnuxt3

Cannot read properties of undefined (reading 'VSCODE_TEXTMATE_DEBUG')


I get this error when trying to use shiki in nuxt3. I do not know the cause, I tried adding that environment variable, but it didn't work.

I've recreated the error here https://stackblitz.com/edit/github-whzftm?file=pages%2F%5B...slug%5D.vue


Solution

  • It is an error in your dependencies. Update nuxt at least to the version 3.5.3 and you'll be fine.