VSCode Error on <script> tag in .svelte file

Viewed 12

I'm having a really odd visual issue in VSCode when working on a Svelte project. All of my files that end in .svelte and have a tag VSCode is showing a little squiggly line with the error: "Error in svelte.config.js SyntaxError: unexpected reserved word svelte".

Does anybody know how to get rid of this error? It's not affecting the svelte compile or runtime at all, it's just visually annoying and makes all my svelte files look like they have errors.

Here is a screenshot of the error in a brand new file with an empty tag:

Error Screenshot

And here is my entire svelte.config.js file:

import adapter from '@sveltejs/adapter-auto';
const config = {
    kit: {
        adapter: adapter(),
        methodOverride: {
            allowed: ['PATCH', 'DELETE']
        }
    }
};
export default config;
0 Answers
Related