error TS6059: File is not under rootDir is expected to contain all source files.
The file is in the program because Matched by default include patternのエラーが出たときの対処方法を紹介します。とても簡単でincludeやexcludeを使えば解決できます。
firebaseでdeployする際に出るエラーの対象方法Error: Failed to get Firebase project. Please make sure the project exists and your account has permission to access it.これは長いことログインしていなかった時に起こります。アクセストークンの期限切れによるエラーです。そのため、下記のようにlogoutして、loginしなおせば解消できます。firebase logout firebase login
next.jsでpolkadot/extension-dappを使っていて下記のようなエラーが出た場合の対象方法を紹介します。error - ReferenceError: window is not defined polkadot reactこれはpolkadot/extension-dappでは、windowを使いますそのため、 server side renderingでは使えません。next.jsではserver side renderingがされてしまいそのため上記のようなエラーが出てしまいます。そのため、下記のようにdynamic import を使用するか関数内でimportしてあげる必要があります。