You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
Hi, If I clone this repository I get typehint errors on all svelte files that read:
Unrecognized option 'defaults'
This photo shows how the "error" appears to occur at the top of every file.
Curiously, this only appears to be an issue with VS Code typescript extension. No issues/errors are reported when running npm run validate or npm run dev.
To reproduce
git clone https://github.com/babichjacob/sapper-typescript-graphql-template
cd sapper-typescript-graphql-template
npm i
code .
Things I've tried:
Setting lang="ts" does nothing
Not connected to the <script> tag per se. Just the first character in each file.
Remove "defaults" option in sveltePreprocess does nothing.
Not seeing anything like this in main svelte/sapper repos so thought I'd check in here first.
The text was updated successfully, but these errors were encountered:
Hi, thanks for your interest in the project and the high quality reproduction steps / attempted solutions; I'm sorry you're experiencing this problem 😦 .
I followed your steps and am not experiencing any errors on macOS 10.15.6 with this VS Code information:
Nothing I do seems to start causing an error for me, like adding useless exports to svelte.config.js. I would expect that the defaults export in there is causing your error, but removing it will interfere with your build process — so to prevent that, you'll have to drop the value of defaults in where it's required in rollup.config.js
Maybe there's more information you can learn from the Svelte page in the Output tab (usually alongside Terminal or Problems)?
Aha! Thanks for your quick response @babichjacob ... the problem was rather mundane.
I just needed to fully uninstall the old plugin by JamesBirtles. It looks like he might have removed that plugin when the merge with official happened so it wasn't obvious that it was disabled/running.
Hi, If I clone this repository I get typehint errors on all svelte files that read:
This photo shows how the "error" appears to occur at the top of every file.
Curiously, this only appears to be an issue with VS Code typescript extension. No issues/errors are reported when running
npm run validate
ornpm run dev
.To reproduce
Things I've tried:
lang="ts"
does nothing<script>
tag per se. Just the first character in each file.sveltePreprocess
does nothing.The text was updated successfully, but these errors were encountered: