## 事象
`wxt.config.ts`で`manifest.key`を指定すると型エラーになる。v3移行なら対応しているはずだが...
![[Pasted image 20240328184015.png]]
なお、実行時には`manifest.key`はちゃんと認識する。
## 原因
型定義に追加されてないだけっぽい。
<div class="link-card">
<div class="link-card-header">
<img src="https://github.githubassets.com/favicons/favicon.svg" class="link-card-site-icon"/>
<span class="link-card-site-name">GitHub</span>
</div>
<div class="link-card-body">
<div class="link-card-content">
<p class="link-card-title">Improve typing of `manifest` config · Issue #521 · wxt-dev/wxt</p>
<p class="link-card-description">Feature Request Instead of using webextension-polyfill's Manifest.WebExtensionManifest type, implement our own that works ... </p>
</div>
<img src="https://opengraph.githubassets.com/35654a9ef2630795806be4b62ad33371b4e83cf083412c10103a1ae71cf9e889/wxt-dev/wxt/issues/521" class="link-card-image" />
</div>
<a href="https://github.com/wxt-dev/wxt/issues/521"></a>
</div>
## 解決方法
v0.19.9以上にアップデートする。
> [!trash]- #2024/11/10 削除
> 修正されるまでは[[@ts-expect-errorコメント]]を使うのがよさそう。
>
> ```ts
> manifest: {
> // @ts-expect-error: https://github.com/wxt-dev/wxt/issues/521
> key: "省略",
> },
>
> ```