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
The import inside the HTML body is not working any longer. It throws the following error:
[plugin:astro] Could not import /src/layouts/Post.astro?astro&type=script&index=0&lang.ts. Error: failed to load module for ssr: /src/layouts/Post.astro?astro&type=script&index=0&lang.ts
If you add "type=module", it renders the page but it doesn't load the component.
I was able to get the code block component to work by importing it as a component and adding it like this:
<CodeBlockNew client:visible/>
but it renders 2 code-blocks in this manner.
The text was updated successfully, but these errors were encountered:
In "layouts/Post.astro" at Line 16:
<script src="../components/CodeBlock/code-block.ts"></script>
The import inside the HTML body is not working any longer. It throws the following error:
[plugin:astro] Could not import
/src/layouts/Post.astro?astro&type=script&index=0&lang.ts
.Error: failed to load module for ssr: /src/layouts/Post.astro?astro&type=script&index=0&lang.ts
If you add "type=module", it renders the page but it doesn't load the component.
I was able to get the code block component to work by importing it as a component and adding it like this:
<CodeBlockNew client:visible/>
but it renders 2 code-blocks in this manner.
The text was updated successfully, but these errors were encountered: