Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Typescript compiler errors when importing editorjs in SvelteKit project (preserveValueImports) #2209

Closed
rajwilkhu opened this issue Dec 9, 2022 · 1 comment · Fixed by #2264
Labels

Comments

@rajwilkhu
Copy link

Describe a bug.

Steps to reproduce:

  1. Create a sveltekit project
  2. install editorjs as an npm depenency
  3. import editorjs as
import type EditorJS from '@editorjs/editorjs';
  1. run linter with default rules and you get the following linter error
Error: 'BlockToolData' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled.
       import {BlockToolData} from '../tools';

Expected behavior:
Typescript compiler should be compile project without errors

Screenshots:

Device, Browser, OS:

Editor.js version: 2.26.2

Plugins you use with their versions: None yet

@rajwilkhu rajwilkhu added the bug label Dec 9, 2022
@paolopiaggio
Copy link

paolopiaggio commented Dec 9, 2022

+1 👍
same error here, could be related to #1432

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants