2020-08-14から1日間の記事一覧
簡潔な記事です 概要 /home/fai/repo/maisandbox3/mocha/next/components/CodeEditorTest.tsx:29 const codeEditor = (<CodeEditor_1.default ref={refEditor} lang='ruby'/>); ^ SyntaxError: Unexpected token '<' というエラーが出る。 原因 Nextのデフォルトのtsconfig.jsonが妙。jsxを無視する設定"jsx": "p</codeeditor_1.default>…