Open heokhe opened 3 years ago
I encountered the same thing and reverting from 3.5.7 back down to 3.5.5 fixed the issue.
The 3.5.7 version didn't like the export * from './World';
line in my index.ts file where the World.ts file only contained a Typescript interface:
export interface World {
name: string;
time: Time;
}
Work around add this at the bottom of the file const _SNOWPACK = true
I am using typescript 4.2.4 and still get that error so typescript versions is not really the problem
Bug Report Quick Checklist
Describe the bug
After editing a file with VSCode and saving it, the following is printed in the terminal screen and the app doesn't refresh:
To Reproduce
npm init snowpack-app --template @snowpack/app-template-preact
npm start
Anything else?
I tested
nano
and everything was fine and I'm not sure if this is a problem with Snowpack or VSCode or anything else, so feel free to close this issue if I'm wrong.