Skip to content
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

Use MDC to refresh browser and get 500(Cannot find module './compose/composer.js') #2918

Open
konogousanda opened this issue Dec 17, 2024 · 2 comments
Labels
v2 Relevant for @nuxt/content v2

Comments

@konogousanda
Copy link

konogousanda commented Dec 17, 2024

"@nuxt/content": "^2.13.4",
"nuxt": "^3.14.1592",
"vue": "latest"

<script setup lang="ts">
const md = `
# hello world
`.trim();
</script>

<template>
    <div>
        <MDC :value="md" />
    </div>
</template>

When running the development environment, when the browser accesses the /test2 path, refreshing the browser will report an error: 500. StackBlitz
Image

@farnabaz
Copy link
Member

It works fine in Stackblitz. Do you face it in Stackblitz too? or does it happen in your local machine?
And seems you are using Windows, might be related to that, do you confirm?

Image

@farnabaz farnabaz added the v2 Relevant for @nuxt/content v2 label Dec 17, 2024
@konogousanda
Copy link
Author

konogousanda commented Dec 17, 2024

@farnabaz Thanks. It happened in my local machine when I run dev, and if I click Home, then I click Test2, it works. After compilation, this issue did not happend. The local code is the same as on StackBlitz.
"node": "v18.17.1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 Relevant for @nuxt/content v2
Projects
None yet
Development

No branches or pull requests

2 participants