2021-12-01から1ヶ月間の記事一覧

error: filename "ExpoModulesProvider.swift" used twice: ~ エラーが出たので対処した

Expo bare workflowを使って開発していた。dev, stg, prodで分けて開発したくなったのでその設定をしてビルドしたら Command CompileSwiftSources failed with a nonzero exit code ... error: filename "ExpoModulesProvider.swift" used twice: というエラ…

JSXでアロー関数にTSのジェネリクスを設定する

アロー関数で記述したコンポーネントにジェネリクスを定義したら JSX element 'T' has no corresponding closing tag. というエラーが出たので対処した。 const F = <T extends {}>() => {...}</t>

ExpoでreactDelegate' not found on object of type 'AppDelegate

Expoで開発をしていたら reactDelegate' not found on object of type 'AppDelegate' というエラーが出た。 ここにあるようにSDK44で対応しているものらしい。 そういえば自分は44でinitしたが、reanimatedがうまく動かなかったので43にダウンさせていた。お…

react-native-firebaseを使おうとしたらUse of undeclared identifier 'FIRApp' が出た。

ここにあるとおり、FB_SONARKIT_ENABLEDよりも上でimportしないといけない。 // before #if defined(FB_SONARKIT_ENABLED) && __has_include(<FlipperKit/FlipperClient.h>) ... #import <Firebase.h> // after #import <Firebase.h> #if defined(FB_SONARKIT_ENABLED) && __has_include(<FlipperKit/FlipperClient.h>) ...</flipperkit/flipperclient.h></firebase.h></firebase.h></flipperkit/flipperclient.h>

address already in useが出たので対処した

4000でGraphQLサーバーを立てようとしたら address already in use が出て起動できなかった。 解決法 lsof -i:4000 // プロセスの確認 kill 31979 // プロセスの停止

PrismaでThe provided value for the column is too longというエラーが出た

ORMにPrismaを使っていたら The provided value for the column is too long というエラーに遭遇した。 iosのサブスク課金のレシート検証に成功した際recieptを保存するようにしたのだが、このデータの保存のタイミングで起こった。 prisma.schemaは以下の感…

CloudFunctionsをセットアップしたらParsing error: Cannot read file ~ というエラーが出たので対処した

CloudFucntionsのセットアップでTSを使用するようにしたところ初手で Parsing error: Cannot read file ~ というTSエラーが出た。 どうやらtsconfig.jsonがルートに存在しないからっぽい。確かにfunctions/の中に存在している。 まず command + , で設定を開…