-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't load layouts in svelte kit #290
Labels
assigned
Whether or not this bug has been assigned some to some other issues as a subtask or pre-req
needs-repro
This issue needs a reproduction before further action can be taken
Comments
btvoidx
changed the title
Can't load layouts in svelte kit (on windows?)
Can't load layouts in svelte kit
Aug 12, 2021
At first I thought it was Windows-only bug, but it actually happens on Ubuntu too. Edit: nvm, I am dumb, on Ubuntu svelte kit does not even start and it has nothing to do with mdsvex. |
Do you have a reproduction for this, so I can look into it? |
pngwn
added
the
needs-repro
This issue needs a reproduction before further action can be taken
label
Sep 10, 2021
With similar problem here.
import adapter from "@sveltejs/adapter-auto";
import preprocess from "svelte-preprocess";
import { mdsvex } from "mdsvex";
const mdsvexConfig = {
extensions: [".svelte.md", ".md", ".svx"],
layout: "./layouts/article.svelte",
smartypants: {
dashes: "oldschool",
},
remarkPlugins: [],
rehypePlugins: [],
};
/** @type {import('@sveltejs/kit').Config} */
const config = {
extensions: [".svelte", ...mdsvexConfig.extensions],
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [preprocess(), mdsvex(mdsvexConfig)],
kit: {
adapter: adapter(),
// hydrate the <div id="svelte"> element in src/app.html
target: "#svelte",
},
};
export default config; And the error message. yarn run v1.22.17
warning package.json: No license field
$ svelte-kit dev
Colon is expected
ParseError: Colon is expected
at error (/home/kenet/Proyectos/experimentos/my-app/node_modules/svelte/compiler.js:17703:20)
at Parser$1.error (/home/kenet/Proyectos/experimentos/my-app/node_modules/svelte/compiler.js:17779:10)
at Object.read_style [as read] (/home/kenet/Proyectos/experimentos/my-app/node_modules/svelte/compiler.js:14116:21)
at tag (/home/kenet/Proyectos/experimentos/my-app/node_modules/svelte/compiler.js:16868:34)
at new Parser$1 (/home/kenet/Proyectos/experimentos/my-app/node_modules/svelte/compiler.js:17738:22)
at Object.parse$3 [as parse] (/home/kenet/Proyectos/experimentos/my-app/node_modules/svelte/compiler.js:17870:21)
at process_layouts (/home/kenet/Proyectos/experimentos/my-app/node_modules/mdsvex/dist/main.cjs.js:25908:26)
at mdsvex (/home/kenet/Proyectos/experimentos/my-app/node_modules/mdsvex/dist/main.cjs.js:26024:12)
at file:///home/kenet/Proyectos/experimentos/my-app/svelte.config.js:24:30
at ModuleJob.run (internal/modules/esm/module_job.js:183:25)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Looks like a sveltekit bug. But I really don't know what is going on.
{
"name": "my-app",
"version": "0.0.1",
"scripts": {
"dev": "svelte-kit dev",
"build": "svelte-kit build",
"package": "svelte-kit package",
"preview": "svelte-kit preview",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch"
},
"devDependencies": {
"@sveltejs/adapter-auto": "next",
"@sveltejs/kit": "next",
"@types/cookie": "^0.4.1",
"mdsvex": "^0.9.8",
"svelte": "^3.44.0",
"svelte-check": "^2.2.6",
"svelte-preprocess": "^4.9.4",
"tslib": "^2.3.1",
"typescript": "^4.4.3"
},
"type": "module",
"dependencies": {
"@fontsource/fira-mono": "^4.5.0",
"@lukeed/uuid": "^2.0.0",
"cookie": "^0.4.1"
}
} |
pngwn
added
the
assigned
Whether or not this bug has been assigned some to some other issues as a subtask or pre-req
label
Feb 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
assigned
Whether or not this bug has been assigned some to some other issues as a subtask or pre-req
needs-repro
This issue needs a reproduction before further action can be taken
mdsvex.config.js
svelte.config.js
I get this issue when
.svx
get rendered:File, of course, exists.
The text was updated successfully, but these errors were encountered: