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

ルーティング章の Preview 表示で Web サーバーが立ち上がらない問題を修正 #90

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

aster-mnch
Copy link
Collaborator

ルーティング章に用意されている pages/ ディレクトリ内に中身が空の .vue ファイルがあるため、WebContainers 内で npm run dev したときに↓のエラーが発生し、画面上では Waiting for Nuxt to ready のまま進まない問題がありました。

At least one <template> or <script> is required in a single file component.

問題となった .vue ファイルは #55 で追加したもので、経緯的にファイル削除できないのでエラー解消のために <template> タグを追加しました。

… content

At least one <template> or <script> is required in a single file
component.
Comment on lines +2 to +4
<template>
TODO
</template>
Copy link
Collaborator Author

@aster-mnch aster-mnch Oct 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝

<template> 内が空だと vue/valid-template-root のリントエラーとなるので、適当な文字列を挿入しました

@ubugeeei ubugeeei merged commit 2197c50 into main Oct 18, 2024
1 check passed
@ubugeeei ubugeeei deleted the fix/failed-dev-server-in-content branch October 18, 2024 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants