Skip to content

Don't ask me to add $lib to compilerOptions.paths #4218

@UltraCakeBakery

Description

@UltraCakeBakery

Describe the problem

Since the most recent version of svelte kit, svelte kit throws a warning telling us that we should add lib to our jsconfig.json:

Your compilerOptions.paths in jsconfig.json should include the following:
{
  "$lib":["src/lib"],
  "$lib/*":["src/lib/*"]
}

We do not use the lib folder, nor did we define it in the svelte.config.js. We are also not planning on using it any time soon.
Without making a fork of svelte kit and removing the warning directly in the source code, there is no way for us to work around it without polluting our jsconfig, or adding a never to be used alias in vite.

Describe the proposed solution

Only show the errors if( !Object.keys( compilerOptions.paths || {} ).length ), or something similar.

Alternatives considered

Applying some tape on the perfect position on our screens and never touching the resize terminal edge ever again.

Importance

nice to have

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions