エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Next.js の _app.tsx で `'Component' cannot be used as a JSX component.` というエラーが出る - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Next.js の _app.tsx で `'Component' cannot be used as a JSX component.` というエラーが出る - Qiita
環境 yarn v3.1.1 next v12.1.4 react v17.0.2 @types/react v17.0.33 背景 Next.js が自動生成する _ap... 環境 yarn v3.1.1 next v12.1.4 react v17.0.2 @types/react v17.0.33 背景 Next.js が自動生成する _app.tsx で下記のようなコードがある。 const App = ({ Component, pageProps }: AppProps) => ( <Component {...pageProps} /> ); export default App; 'Component' cannot be used as a JSX component. Its element type 'Component<any, any, any> | ReactElement<any, any> | null' is not a valid JSX element. Type 'Component<any, any, any>' is n