1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Supabaseをimportで呼び出してきた際、型情報が無いと言われる (Cannot find module '...' or its corresponding type declarations.)

Posted at

事象

supabaseをTypescriptの環境下で利用しようとした際、以下のエラーが発生しました。

// 問題のコード
import { createClient } from "@supabase/supabase-js";

// エラー
Cannot find module '@supabase/supabase-js' or its corresponding type declarations.

原因

VSCodeの拡張機能が干渉していたらしい。

解決方法

こちらを参照
https://zenn.dev/minamo/articles/6c935d0dccd5e6

拡張機能を無効化することで対応します。

  1. VSCodeの拡張機能タブの検索欄に @builtin typescript を入力
  2. 「Typescript と JavaScript の言語機能」を無効にする
  3. VSCodeを再起動する
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?