You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Error while preprocessing /home/midirhee12/Projects/midirhee12/personal-website/main/.svelte-kit/generated/root.svelte - ext.startsWith is not a function
at /home/midirhee12/Projects/midirhee12/personal-website/main/node_modules/.pnpm/[email protected][email protected]/node_modules/mdsvex/dist/main.cjs.js:24416:71
at Array.map (<anonymous>)
at markup (/home/midirhee12/Projects/midirhee12/personal-website/main/node_modules/.pnpm/[email protected][email protected]/node_modules/mdsvex/dist/main.cjs.js:24416:56)
at process_markup (file:///home/midirhee12/Projects/midirhee12/personal-website/main/node_modules/.pnpm/[email protected]/node_modules/svelte/src/compiler/preprocess/index.js:309:26)
at Module.preprocess (file:///home/midirhee12/Projects/midirhee12/personal-website/main/node_modules/.pnpm/[email protected]/node_modules/svelte/src/compiler/preprocess/index.js:355:31)
at async compileSvelte (file:///home/midirhee12/Projects/midirhee12/personal-website/main/node_modules/.pnpm/@[email protected][email protected][email protected]_@[email protected]_/node_modules/@sveltejs/vite-plugin-svelte/src/utils/compile.js:85:20)
at async TransformPluginContext.transform (file:///home/midirhee12/Projects/midirhee12/personal-website/main/node_modules/.pnpm/@[email protected][email protected][email protected]_@[email protected]_/node_modules/@sveltejs/vite-plugin-svelte/src/index.js:148:20)
at async PluginContainer.transform (file:///home/midirhee12/Projects/midirhee12/personal-website/main/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49096:18)
at async loadAndTransform (file:///home/midirhee12/Projects/midirhee12/personal-website/main/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:51929:27)
at async instantiateModule (file:///home/midirhee12/Projects/midirhee12/personal-website/main/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52874:44)
Hi @midirhee12 I just had the same issue - there is both extension and extensions available. The first is deprecated and can only work with a (single) string. The latter (extensions) is the way to go if you want to pass an array :)
After adding this to the
svelte.config.js
:I get the following:
Seems to be related to:
MDsveX/packages/mdsvex/src/index.ts
Line 293 in f29f31c
The text was updated successfully, but these errors were encountered: