AVATAR_DIRについて
#1447
Replies: 1 comment 1 reply
-
|
こちらで anbient.d.ts から AVATAR_DIR の定義を慶して確認しました。
これで、anbient.d.ts が更新され、参照エラーが無くなる。 と思われます。一度お試しくださいませ。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
以下のファイルで
import { AVATAR_DIR } from '$env/static/private'という記述がされていますが、以下のエラーが発生します。AVATAR_DIRをimportしているファイル
エラー
Error: Module '"$env/static/private"' has no exported member 'AVATAR_DIR'..svelte-kit/ambient.d.ts の中にAVATAR_DIRが定義されていないのが原因なのですが、.svelte-kitは.gitignoreに定義されており、修正を行ってもGitに認識されません。.gitignoreから.svelte-kitを削除し、.svelte-kit/ambient.d.tsにAVATAR_DIRを定義してもよいでしょうか。
Beta Was this translation helpful? Give feedback.
All reactions