-
Notifications
You must be signed in to change notification settings - Fork 96
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
Compile, Mdsvex imports error on Join #412
Comments
Same problem here. I want to render markdown in a component using the compile function in the components script tag and I get the same error. |
Same problem for me... Everything work if I use |
Same problem here. |
I'm having the same issue. Because of the note by @miedzikd, I tried moving the |
I'm having the same issue. A workaround would be highly appreciated. |
You can only use it on one endpoint. import { compile } from 'mdsvex';
/** @type {import('@sveltejs/kit').RequestHandler} */
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export async function get() {
const transformed_code = await compile(
`
<script>
import { LogoApp } from '$lib/components';
</script>
<LogoApp></LogoApp>
# Hello friends
Esto es una prueba de **markdown**
`
);
const data = transformed_code;
console.log(data);
const body = {
data
};
return { body: body };
} But many functionalities are lost. Such as the layout and the import of components. |
I am using a bare sveltekit demo app and am simply using
import { mdsvex, compile } from 'mdsvex';
on one of my routes to make a preview container. It breaks my app with this errornode_modules/mdsvex/dist/main.es.js:2:24: error: No matching export in "browser-external:path" for import "join" 2 │ import path__default, { join } from 'path';
I have tried import each separately and its the same thing.
Any help would be appreciated! Thanks.
The text was updated successfully, but these errors were encountered: