Skip to content

next: No known conditions for "./elements" specifier in "svelte" package #624

@eikaramba

Description

@eikaramba

TableOfContents.svelte:4:35

3 | import * as $ from 'svelte/internal/server';
4 | import { createEventDispatcher, onDestroy, onMount } from 'svelte';
5 | import 'svelte/elements';
| ^
6 | import { BROWSER } from 'esm-env';
7 | import { buildTree } from '@layerstack/utils/array';

Error: No known conditions for "./elements" specifier in "svelte" package

likely related to https://johnnyreilly.com/typescript-5-importsnotusedasvalues-error-eslint-consistent-type-imports#no-import-type-side-effects. i guess changing TableOfContent.svelte file to use import type { HTMLAttributes } from 'svelte/elements'; would fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions