-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Description
Trying to add Prettier to my project: https://github.com/hrishikesh-k/blog. Running npx prettier . --write
fails with the above error. Here's the entire output:
Terminal output
npx prettier . --write
package-lock.json 285ms (unchanged)
package.json 2ms (unchanged)
packages/adapter/index.ts 549ms (unchanged)
packages/adapter/package.json 2ms (unchanged)
packages/adapter/tsconfig.json 3ms (unchanged)
packages/archive/index.ts 31ms (unchanged)
packages/archive/package.json 1ms (unchanged)
packages/archive/tsconfig.json 4ms (unchanged)
packages/cache/index.ts 28ms (unchanged)
packages/cache/package.json 2ms (unchanged)
packages/cache/tsconfig.json 3ms (unchanged)
packages/image/index.ts 24ms (unchanged)
packages/image/package.json 2ms (unchanged)
packages/image/tsconfig.json 3ms (unchanged)
packages/site/deno/image.ts 21ms (unchanged)
packages/site/package.json 2ms (unchanged)
packages/site/postcss.config.js 18ms (unchanged)
packages/site/src/app.d.ts 17ms (unchanged)
packages/site/src/app.html 34ms (unchanged)
packages/site/src/components/c-button.svelte{
"type": "Script",
"start": 0,
"end": 4615,
"context": "default",
"content": {
"type": "Program",
"start": 4604,
"end": 4606,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 4606
}
},
"body": [
{
"type": "BlockStatement",
"start": 4604,
"end": 4606,
"loc": {
"start": {
"line": 1,
"column": 4604
},
"end": {
"line": 1,
"column": 4606
}
},
"body": []
}
],
"sourceType": "module"
}
}
[error] packages/site/src/components/c-button.svelte: Error: unknown node type: Script
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1474:11)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
[error] at mainPrintInternal (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20854:18)
[error] at mainPrint (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20837:14)
[error] at AstPath.call (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:19316:14)
[error] at printTopLevelParts (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1515:33)
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:929:16)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
packages/site/src/components/c-icon.svelte{
"type": "Script",
"start": 0,
"end": 363,
"context": "default",
"content": {
"type": "Program",
"start": 352,
"end": 354,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 354
}
},
"body": [
{
"type": "BlockStatement",
"start": 352,
"end": 354,
"loc": {
"start": {
"line": 1,
"column": 352
},
"end": {
"line": 1,
"column": 354
}
},
"body": []
}
],
"sourceType": "module"
}
}
[error] packages/site/src/components/c-icon.svelte: Error: unknown node type: Script
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1474:11)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
[error] at mainPrintInternal (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20854:18)
[error] at mainPrint (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20837:14)
[error] at AstPath.call (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:19316:14)
[error] at printTopLevelParts (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1515:33)
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:929:16)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
packages/site/src/components/c-notion-code.svelte{
"type": "Script",
"start": 0,
"end": 419,
"context": "default",
"content": {
"type": "Program",
"start": 408,
"end": 410,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 410
}
},
"body": [
{
"type": "BlockStatement",
"start": 408,
"end": 410,
"loc": {
"start": {
"line": 1,
"column": 408
},
"end": {
"line": 1,
"column": 410
}
},
"body": []
}
],
"sourceType": "module"
}
}
[error] packages/site/src/components/c-notion-code.svelte: Error: unknown node type: Script
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1474:11)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
[error] at mainPrintInternal (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20854:18)
[error] at mainPrint (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20837:14)
[error] at AstPath.call (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:19316:14)
[error] at printTopLevelParts (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1515:33)
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:929:16)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
packages/site/src/components/c-notion-image.svelte{
"type": "Script",
"start": 0,
"end": 799,
"context": "default",
"content": {
"type": "Program",
"start": 788,
"end": 790,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 790
}
},
"body": [
{
"type": "BlockStatement",
"start": 788,
"end": 790,
"loc": {
"start": {
"line": 1,
"column": 788
},
"end": {
"line": 1,
"column": 790
}
},
"body": []
}
],
"sourceType": "module"
}
}
[error] packages/site/src/components/c-notion-image.svelte: Error: unknown node type: Script
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1474:11)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
[error] at mainPrintInternal (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20854:18)
[error] at mainPrint (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20837:14)
[error] at AstPath.call (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:19316:14)
[error] at printTopLevelParts (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1515:33)
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:929:16)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
packages/site/src/components/c-tooltip.svelte{
"type": "Script",
"start": 0,
"end": 963,
"context": "default",
"content": {
"type": "Program",
"start": 952,
"end": 954,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 954
}
},
"body": [
{
"type": "BlockStatement",
"start": 952,
"end": 954,
"loc": {
"start": {
"line": 1,
"column": 952
},
"end": {
"line": 1,
"column": 954
}
},
"body": []
}
],
"sourceType": "module"
}
}
[error] packages/site/src/components/c-tooltip.svelte: Error: unknown node type: Script
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1474:11)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
[error] at mainPrintInternal (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20854:18)
[error] at mainPrint (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20837:14)
[error] at AstPath.call (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:19316:14)
[error] at printTopLevelParts (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1515:33)
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:929:16)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
packages/site/src/lib/constants.ts 14ms (unchanged)
packages/site/src/lib/functions.ts 19ms (unchanged)
packages/site/src/lib/server/constants.ts 36ms (unchanged)
packages/site/src/lib/server/functions.ts 37ms
packages/site/src/lib/types.ts 38ms (unchanged)
packages/site/src/partials/p-animation/p-animation.svelte{
"type": "Script",
"start": 0,
"end": 29087,
"context": "default",
"content": {
"type": "Program",
"start": 29076,
"end": 29078,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 29078
}
},
"body": [
{
"type": "BlockStatement",
"start": 29076,
"end": 29078,
"loc": {
"start": {
"line": 1,
"column": 29076
},
"end": {
"line": 1,
"column": 29078
}
},
"body": []
}
],
"sourceType": "module"
}
}
[error] packages/site/src/partials/p-animation/p-animation.svelte: Error: unknown node type: Script
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1474:11)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
[error] at mainPrintInternal (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20854:18)
[error] at mainPrint (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20837:14)
[error] at AstPath.call (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:19316:14)
[error] at printTopLevelParts (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1515:33)
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:929:16)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
packages/site/src/partials/p-animation/p-svg-group.svelte{
"type": "Script",
"start": 0,
"end": 423,
"context": "default",
"content": {
"type": "Program",
"start": 412,
"end": 414,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 414
}
},
"body": [
{
"type": "BlockStatement",
"start": 412,
"end": 414,
"loc": {
"start": {
"line": 1,
"column": 412
},
"end": {
"line": 1,
"column": 414
}
},
"body": []
}
],
"sourceType": "module"
}
}
[error] packages/site/src/partials/p-animation/p-svg-group.svelte: Error: unknown node type: Script
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1474:11)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
[error] at mainPrintInternal (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20854:18)
[error] at mainPrint (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20837:14)
[error] at AstPath.call (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:19316:14)
[error] at printTopLevelParts (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1515:33)
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:929:16)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
packages/site/src/partials/p-header.svelte{
"type": "Script",
"start": 0,
"end": 327,
"context": "default",
"content": {
"type": "Program",
"start": 316,
"end": 318,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 318
}
},
"body": [
{
"type": "BlockStatement",
"start": 316,
"end": 318,
"loc": {
"start": {
"line": 1,
"column": 316
},
"end": {
"line": 1,
"column": 318
}
},
"body": []
}
],
"sourceType": "module"
}
}
[error] packages/site/src/partials/p-header.svelte: Error: unknown node type: Script
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1474:11)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
[error] at mainPrintInternal (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20854:18)
[error] at mainPrint (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20837:14)
[error] at AstPath.call (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:19316:14)
[error] at printTopLevelParts (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1515:33)
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:929:16)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
packages/site/src/routes/+layout.svelte{
"type": "Script",
"start": 0,
"end": 407,
"context": "default",
"content": {
"type": "Program",
"start": 396,
"end": 398,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 398
}
},
"body": [
{
"type": "BlockStatement",
"start": 396,
"end": 398,
"loc": {
"start": {
"line": 1,
"column": 396
},
"end": {
"line": 1,
"column": 398
}
},
"body": []
}
],
"sourceType": "module"
}
}
[error] packages/site/src/routes/+layout.svelte: Error: unknown node type: Script
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1474:11)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
[error] at mainPrintInternal (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20854:18)
[error] at mainPrint (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20837:14)
[error] at AstPath.call (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:19316:14)
[error] at printTopLevelParts (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1515:33)
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:929:16)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
packages/site/src/routes/+layout.ts 11ms (unchanged)
packages/site/src/routes/+page.svelte{
"type": "Script",
"start": 0,
"end": 283,
"context": "default",
"content": {
"type": "Program",
"start": 272,
"end": 274,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 274
}
},
"body": [
{
"type": "BlockStatement",
"start": 272,
"end": 274,
"loc": {
"start": {
"line": 1,
"column": 272
},
"end": {
"line": 1,
"column": 274
}
},
"body": []
}
],
"sourceType": "module"
}
}
[error] packages/site/src/routes/+page.svelte: Error: unknown node type: Script
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1474:11)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
[error] at mainPrintInternal (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20854:18)
[error] at mainPrint (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20837:14)
[error] at AstPath.call (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:19316:14)
[error] at printTopLevelParts (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1515:33)
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:929:16)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
packages/site/src/routes/about/+page.svelte 14ms (unchanged)
packages/site/src/routes/posts/[id]/[[slug]]/+page.server.ts 77ms (unchanged)
packages/site/src/routes/posts/[id]/[[slug]]/+page.svelte{
"type": "Script",
"start": 0,
"end": 279,
"context": "default",
"content": {
"type": "Program",
"start": 268,
"end": 270,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 270
}
},
"body": [
{
"type": "BlockStatement",
"start": 268,
"end": 270,
"loc": {
"start": {
"line": 1,
"column": 268
},
"end": {
"line": 1,
"column": 270
}
},
"body": []
}
],
"sourceType": "module"
}
}
[error] packages/site/src/routes/posts/[id]/[[slug]]/+page.svelte: Error: unknown node type: Script
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1474:11)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
[error] at mainPrintInternal (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20854:18)
[error] at mainPrint (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20837:14)
[error] at AstPath.call (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:19316:14)
[error] at printTopLevelParts (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1515:33)
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:929:16)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
packages/site/src/routes/posts/+page.server.ts 24ms (unchanged)
packages/site/src/routes/posts/+page.svelte{
"type": "Script",
"start": 0,
"end": 147,
"context": "default",
"content": {
"type": "Program",
"start": 136,
"end": 138,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 138
}
},
"body": [
{
"type": "BlockStatement",
"start": 136,
"end": 138,
"loc": {
"start": {
"line": 1,
"column": 136
},
"end": {
"line": 1,
"column": 138
}
},
"body": []
}
],
"sourceType": "module"
}
}
[error] packages/site/src/routes/posts/+page.svelte: Error: unknown node type: Script
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1474:11)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
[error] at mainPrintInternal (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20854:18)
[error] at mainPrint (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20837:14)
[error] at AstPath.call (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:19316:14)
[error] at printTopLevelParts (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:1515:33)
[error] at Object.print (/home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-svelte/plugin.js:929:16)
[error] at Object.print (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2353:59544)
[error] at callPluginPrintFunction (file:///home/hrishikesh/projects/ntl-blog/node_modules/prettier/index.mjs:20871:20)
packages/site/src/tailwind.css 33ms (unchanged)
packages/site/svelte.config.js 13ms (unchanged)
packages/site/tailwind.config.ts 55ms (unchanged)
packages/site/tsconfig.json 3ms (unchanged)
packages/site/vite.config.ts 9ms (unchanged)
packages/utils/index.ts 16ms (unchanged)
packages/utils/package.json 2ms (unchanged)
packages/utils/tsconfig.json 2ms (unchanged)
prettier.config.js 6ms (unchanged)
turbo.json 4ms (unchanged)
I'm using Node.js 20 in Ubuntu 24.04 (WSL).
Metadata
Metadata
Assignees
Labels
No labels