Skip to content

Type error in manifest? #893

Answered by depsypher
depsypher asked this question in Q&A
Discussion options

You must be logged in to vote

Ah ok, figured it out. Just needed to cast. Like this:

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import {crx, ManifestV3Export} from '@crxjs/vite-plugin'
import man from './manifest.json'

const manifest = man as ManifestV3Export

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
      react(),
      crx({manifest}),
  ]
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Toumash
Comment options

Answer selected by depsypher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants