アカウント登録画面で情報を入力後送信を押すと、
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check the render method of Register
.
というエラーが出てしまいます。同じくLoginフォームでも送信するとこのエラーCheck the render method of Login
.がでてしまいます。
今のところimportがかぶっているところは見当たりませんでした。Githubコードに全て貼り替えましたがエラーは変わりませんでした。
バージョンや互換性の問題のようで、インストールしたパッケージ等を講座のバージョンと合わせたとところエラーは出ず、ログインできましたが、アカウント登録はできません。
GET http://localhost:3000/api/account/refresh 401 (Unauthorized)
POST http://localhost:3000/api/account/register 400 (Bad Request)
上記エラーが表示されます。ご教授お願いいたします。