Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DEPRECATION WARNING: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. #656

Copy link
Copy link
Closed
@Keavon

Description

@Keavon
Issue body actions

Describe the bug
According to:

> npm ls sass
my-project
├─┬ svelte-preprocess@6.0.2
│ └── sass@1.79.3
└─┬ vite@5.4.7
  └── sass@1.79.3 deduped

This, together with Vite, both pull in Sass 1.79 which has begun spamming the console with deprecation warnings (see Logs in the next paragraph). Vite already has an issue open for this, but I'm creating one here as well. They opted to downgrade to Sass 1.78 and that might be a viable solution here too.

Logs
The following is spammed repeatedly to the console:

More info: https://sass-lang.com/d/legacy-js-api

DEPRECATION WARNING: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

To Reproduce
Use Sass in your Svelte 4 project and bundle it with Vite.

Expected behavior
No console spam.

Information about your project:

I'm running Windows 11 and here is my package.json. The problem occurs when all dependencies are fully up-to-date, but I'm avoiding upgrading for now until this issue is resolved.

bassim-matar, kling90 and Cluster2a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.