Skip to content

Instantly share code, notes, and snippets.

@michaelwooley
Last active August 26, 2020 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelwooley/9a3264884964fefbd0e0cb6ab11f1da8 to your computer and use it in GitHub Desktop.
Save michaelwooley/9a3264884964fefbd0e0cb6ab11f1da8 to your computer and use it in GitHub Desktop.
prettier-plugin-svelte VS Code error
Extension Author (truncated) Version
vscode-sql-formatter adp 1.4.4
All-Autocomplete Ati 0.0.23
toml be5 0.5.1
vscode-tailwindcss bra 0.4.2
npm-intellisense chr 1.3.0
language-postcss cpy 1.1.0
vscode-eslint dba 2.1.8
githistory don 0.6.9
eslint-disable-snippets drK 1.2.0
vscode-npm-script eg2 0.3.13
comment-anchors Exo 1.8.0
git-project-manager fel 1.7.1
file-icons fil 1.0.25
vscode-firefox-debug fir 2.9.1
vscode-jest-runner fir 0.4.22
vscode-pull-request-github Git 0.19.0
gitlab-workflow Git 3.2.0
todo-tree Gru 0.0.178
vscode-docker ms- 1.5.0
python ms- 2020.8.103604
emoji Per 0.0.3
tsimporter pmn 2.0.1
mdx sil 0.1.0
vscode-fileutils sle 3.0.1
svelte-vscode sve 101.10.0
vscodeintellicode Vis 1.2.10
markdown-all-in-one yzh 3.2.0
material-theme zhu 3.8.5
{
"html": {
"start": 55,
"end": 415,
"type": "Fragment",
"children": [
{
"start": 55,
"end": 415,
"type": "Element",
"name": "svg",
"attributes": [
{
"start": 60,
"end": 89,
"type": "Attribute",
"name": "class",
"value": [
{
"start": 67,
"end": 88,
"type": "Text",
"raw": "h-5 w-5 text-gray-500",
"data": "h-5 w-5 text-gray-500"
}
]
},
{
"start": 91,
"end": 101,
"type": "Attribute",
"name": "width",
"value": [
{
"start": 98,
"end": 100,
"type": "Text",
"raw": "24",
"data": "24"
}
]
},
{
"start": 102,
"end": 113,
"type": "Attribute",
"name": "height",
"value": [
{
"start": 110,
"end": 112,
"type": "Text",
"raw": "24",
"data": "24"
}
]
},
{
"start": 114,
"end": 133,
"type": "Attribute",
"name": "viewBox",
"value": [
{
"start": 123,
"end": 132,
"type": "Text",
"raw": "0 0 24 24",
"data": "0 0 24 24"
}
]
},
{
"start": 134,
"end": 150,
"type": "Attribute",
"name": "stroke-width",
"value": [
{
"start": 148,
"end": 149,
"type": "Text",
"raw": "2",
"data": "2"
}
]
},
{
"start": 151,
"end": 172,
"type": "Attribute",
"name": "stroke",
"value": [
{
"start": 159,
"end": 171,
"type": "Text",
"raw": "currentColor",
"data": "currentColor"
}
]
},
{
"start": 173,
"end": 184,
"type": "Attribute",
"name": "fill",
"value": [
{
"start": 179,
"end": 183,
"type": "Text",
"raw": "none",
"data": "none"
}
]
},
{
"start": 185,
"end": 207,
"type": "Attribute",
"name": "stroke-linecap",
"value": [
{
"start": 201,
"end": 206,
"type": "Text",
"raw": "round",
"data": "round"
}
]
},
{
"start": 208,
"end": 231,
"type": "Attribute",
"name": "stroke-linejoin",
"value": [
{
"start": 225,
"end": 230,
"type": "Text",
"raw": "round",
"data": "round"
}
]
}
],
"children": [
{
"start": 232,
"end": 239,
"type": "Text",
"raw": " \n ",
"data": " \n "
},
{
"start": 239,
"end": 278,
"type": "Element",
"name": "path",
"attributes": [
{
"start": 245,
"end": 258,
"type": "Attribute",
"name": "stroke",
"value": [
{
"start": 253,
"end": 257,
"type": "Text",
"raw": "none",
"data": "none"
}
]
},
{
"start": 259,
"end": 276,
"type": "Attribute",
"name": "d",
"value": [
{
"start": 262,
"end": 275,
"type": "Text",
"raw": "M0 0h24v24H0z",
"data": "M0 0h24v24H0z"
}
]
}
],
"children": []
},
{
"start": 278,
"end": 285,
"type": "Text",
"raw": " \n ",
"data": " \n "
},
{
"start": 285,
"end": 322,
"type": "Element",
"name": "line",
"attributes": [
{
"start": 291,
"end": 297,
"type": "Attribute",
"name": "x1",
"value": [
{
"start": 295,
"end": 296,
"type": "Text",
"raw": "4",
"data": "4"
}
]
},
{
"start": 298,
"end": 304,
"type": "Attribute",
"name": "y1",
"value": [
{
"start": 302,
"end": 303,
"type": "Text",
"raw": "6",
"data": "6"
}
]
},
{
"start": 305,
"end": 312,
"type": "Attribute",
"name": "x2",
"value": [
{
"start": 309,
"end": 311,
"type": "Text",
"raw": "20",
"data": "20"
}
]
},
{
"start": 313,
"end": 319,
"type": "Attribute",
"name": "y2",
"value": [
{
"start": 317,
"end": 318,
"type": "Text",
"raw": "6",
"data": "6"
}
]
}
],
"children": []
},
{
"start": 322,
"end": 329,
"type": "Text",
"raw": " \n ",
"data": " \n "
},
{
"start": 329,
"end": 368,
"type": "Element",
"name": "line",
"attributes": [
{
"start": 335,
"end": 341,
"type": "Attribute",
"name": "x1",
"value": [
{
"start": 339,
"end": 340,
"type": "Text",
"raw": "4",
"data": "4"
}
]
},
{
"start": 342,
"end": 349,
"type": "Attribute",
"name": "y1",
"value": [
{
"start": 346,
"end": 348,
"type": "Text",
"raw": "12",
"data": "12"
}
]
},
{
"start": 350,
"end": 357,
"type": "Attribute",
"name": "x2",
"value": [
{
"start": 354,
"end": 356,
"type": "Text",
"raw": "20",
"data": "20"
}
]
},
{
"start": 358,
"end": 365,
"type": "Attribute",
"name": "y2",
"value": [
{
"start": 362,
"end": 364,
"type": "Text",
"raw": "12",
"data": "12"
}
]
}
],
"children": []
},
{
"start": 368,
"end": 370,
"type": "Text",
"raw": " ",
"data": " "
},
{
"start": 370,
"end": 409,
"type": "Element",
"name": "line",
"attributes": [
{
"start": 376,
"end": 382,
"type": "Attribute",
"name": "x1",
"value": [
{
"start": 380,
"end": 381,
"type": "Text",
"raw": "4",
"data": "4"
}
]
},
{
"start": 383,
"end": 390,
"type": "Attribute",
"name": "y1",
"value": [
{
"start": 387,
"end": 389,
"type": "Text",
"raw": "18",
"data": "18"
}
]
},
{
"start": 391,
"end": 398,
"type": "Attribute",
"name": "x2",
"value": [
{
"start": 395,
"end": 397,
"type": "Text",
"raw": "20",
"data": "20"
}
]
},
{
"start": 399,
"end": 406,
"type": "Attribute",
"name": "y2",
"value": [
{
"start": 403,
"end": 405,
"type": "Text",
"raw": "18",
"data": "18"
}
]
}
],
"children": []
}
]
}
]
},
"instance": {
"type": "Script",
"start": 0,
"end": 55,
"context": "default",
"content": {
"type": "Program",
"start": 44,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 46
}
},
"body": [
{
"type": "BlockStatement",
"start": 44,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 44
},
"end": {
"line": 1,
"column": 46
}
},
"body": []
}
],
"sourceType": "module"
}
}
}
Error: unknown node type: undefined
at Object.print (/home/michael/.vscode/extensions/svelte.svelte-vscode-101.10.0/node_modules/prettier-plugin-svelte/plugin.js:458:11)
at callPluginPrintFunction (/home/michael/Documents/guhdoh-app/frontend/node_modules/prettier/index.js:14665:18)
at /home/michael/Documents/guhdoh-app/frontend/node_modules/prettier/index.js:14596:47
at Object.printComments (/home/michael/Documents/guhdoh-app/frontend/node_modules/prettier/index.js:14228:19)
at printGenerically (/home/michael/Documents/guhdoh-app/frontend/node_modules/prettier/index.js:14596:22)
at printAstToDoc (/home/michael/Documents/guhdoh-app/frontend/node_modules/prettier/index.js:14606:13)
at coreFormat (/home/michael/Documents/guhdoh-app/frontend/node_modules/prettier/index.js:14856:15)
at format (/home/michael/Documents/guhdoh-app/frontend/node_modules/prettier/index.js:15063:14)
at formatWithCursor (/home/michael/Documents/guhdoh-app/frontend/node_modules/prettier/index.js:15080:12)
at /home/michael/Documents/guhdoh-app/frontend/node_modules/prettier/index.js:54658:12
CPUs Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz (4 x 2700)
GPU Status 2d_canvas: unavailable_software
flash_3d: disabled_software
flash_stage3d: disabled_software
flash_stage3d_baseline: disabled_software
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: disabled_off
rasterization: disabled_software
skia_renderer: disabled_off_ok
video_decode: disabled_software
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: unavailable_software
webgl2: unavailable_software
Load (avg) 2, 2, 2
Memory (System) 11.60GB (1.19GB free)
Process Argv --force-user-env --no-sandbox --unity-launch --no-sandbox
Screen Reader no
VM 0%
@JCMais
Copy link

JCMais commented Aug 26, 2020

@michaelwooley any luck with that?

@michaelwooley
Copy link
Author

@JCMais - yes . In the comments of this issue there are a few attempts from me and others to explain precisely how...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment