Closed EosFoundry closed 2 years ago
When referencing electron-env.d.ts like so:
electron-env.d.ts
/// <reference types="vite-electron-plugin/electron-env" />
Running npx tsc (with or without --emitDeclarationOnly)
npx tsc
--emitDeclarationOnly
node_modules/vite-electron-plugin/electron-env.d.ts:10:30 - error TS2307: Cannot find module './src/config' or its corresponding type declarations. 10 _resolved_config: import('./src/config').ResolvedConfig
-- _resolved_config: import('./src/config').ResolvedConfig ++ _resolved_config: import('./types/config').ResolvedConfig
deleting line 10 also works, with no side effects yet
Yep! Can you submit a PR to fix it? 😄
Error
When referencing
electron-env.d.ts
like so:Running
npx tsc
(with or without--emitDeclarationOnly
)Working fixes:
deleting line 10 also works, with no side effects yet