0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Next.js Parsing error: Unterminated regular expression literal.eslint

Last updated at Posted at 2025-05-04

何が起きたか

Next.jsを利用しています。以下のコードでエラーが発生しました。

エラー内容

Parsing error: Unterminated regular expression literal.eslint
import React from "react";

function Navigation() {
  return <div>Navigation</div>;
}

export default Navigation;

正規表現に関して言われていますが、divタグを正しく読み込めていない感あります。

解決策

ファイル名 Navigation.tsNavigation.tsxに変更しました。
寝ぼけてtsで作ってしまったようです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?