rollup-plugin-svelte-hot icon indicating copy to clipboard operation
rollup-plugin-svelte-hot copied to clipboard

Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.

Open jakobrosenberg opened this issue 5 years ago • 1 comments

Getting this error when running tsc in a project that depends on `rollup-plugin-svelte-hot.

../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/rollup-plugin-svelte-hot/index.d.ts:10:1 - error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.    

10 class CssWriter {
   ~~~~~

jakobrosenberg avatar Oct 06 '20 14:10 jakobrosenberg

Aren't you getting the same thing with the official plugin? The types declaration essentially comes from there...

We've just merged a more recent version, can you confirm if you still get this with rollup-plugin-svelte-hot@next (0.11.0-1)?

rixo avatar Oct 21 '20 21:10 rixo