visualjerk / vue-cion-design-system

CION - Design system boilerplate for Vue.js
https://cion.visualjerk.de
MIT License
142 stars 24 forks source link

jsdoc-loader issues #27

Closed MarineLB closed 4 years ago

MarineLB commented 4 years ago

Hi ! Thanks for this great boilerplate :)

I'm trying to adapt it to mine and am getting the following error on compiling :

Syntax Error: Error: SyntaxError: /Users/marine/Documents/MAKESENSE/makesense_design-system/src/system/components/typography/Text/Text.vue: Expecting Unicode escape sequence \uXXXX (24:9)

  22 |  */
  23 | export default {
> 24 |   name: \"DsText\",
    |          ^
  25 |   provide() {
  26 |     return {
  27 |       $parentText: this

It seems to be related to the jsdoc-loader file located in src/loader. Im using version "2.6.12" of thevue-docgen-api, and the package.json says^2.3.13`

Do you know where that could come from?

MarineLB commented 4 years ago

It seems that adding .replace(/\\"/g, '\"') to the loader file does the trick. 🤷‍♀