samrum / vite-plugin-web-extension

A vite plugin for generating cross browser platform, ES module based web extensions.
MIT License
325 stars 32 forks source link

rollup types conflict with vite types #82

Closed DetachHead closed 1 year ago

DetachHead commented 1 year ago
> tsc
node_modules/@samrum/vite-plugin-web-extension/types/index.d.ts:40:5 - error TS2687: All declarations of 'viteMetadata' must have identical modifiers.

40     viteMetadata: ChunkMetadata;
       ~~~~~~~~~~~~

node_modules/@samrum/vite-plugin-web-extension/types/index.d.ts:40:5 - error TS2717: Subsequent property declarations must have the same type.  Property 'viteMetadata' must be of type 'ChunkMetadata | undefined', but here has type 'ChunkMetadata'.

40     viteMetadata: ChunkMetadata;
       ~~~~~~~~~~~~

  node_modules/vite/types/metadata.d.ts:8:5
    8     viteMetadata?: ChunkMetadata
          ~~~~~~~~~~~~
    'viteMetadata' was also declared here.

node_modules/vite/types/metadata.d.ts:8:5 - error TS2687: All declarations of 'viteMetadata' must have identical modifiers.

8     viteMetadata?: ChunkMetadata
      ~~~~~~~~~~~~

Found 3 errors in 2 files.