How to find declaration for my typescript/react module?

I am very (very) new in frontend technologies, specially react and typescript.

My issue come when trying to do a simple thing that is to use a react component https://github.com/ckeditor/ckeditor5

So I went to the examples and found this:

https://github.com/ckeditor/ckeditor5-react-example/blob/master/package.json

I am trying to include the ckeditor with the ClassicEditor module

So I added this on my package.json

"@ckeditor/ckeditor5-editor-classic": "^12.0.0",
"@ckeditor/ckeditor5-essentials": "^11.0.0",
"@ckeditor/ckeditor5-paragraph": "^11.0.0",
"@ckeditor/ckeditor5-react": "^1.1.2",

and checking the implementation here https://github.com/ckeditor/ckeditor5-react-example/blob/master/src/App.js

I need to import the module definition for typescript (I guess)

import CKEditor from '@ckeditor/ckeditor5-react';

// NOTE: We use editor from source (not a build)!
import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';

So, this part has this weird note, but happen that does not work in my project (says is missing and cannot find it)

Any idea what else I could do to add it? I tried removing the /src/classiceditor part but is still missing.

I made a npm install and I am able to see the classiceditor code there with package.json and more… the /src/classiceditor folder actually exists node_modules with /@ckeditor/ckeditor5-editor-classic/src/classiceditor.js

Any idea what I’m missing?

140 thoughts on “How to find declaration for my typescript/react module?”

  1. Pingback: shakra keto diet
  2. My brother recommended I might like this
    web site. He was entirely right. This post truly made my day.

    You cann’t imagine simply how much time I had spent for this info!
    Thanks!

    Reply
  3. Do you mind if I quote a few of your articles
    as long as I provide credit and sources back to your
    website? My website is in the very same area of interest as
    yours and my users would really benefit from a lot of the information you provide
    here. Please let me know if this alright with you.
    Regards!

    Reply
  4. Pingback: lumigan 0.01%
  5. Pingback: olumiant covid
  6. I’ll immediately grasp your rss feed as I can’t find your e-mail subscription hyperlink or e-newsletter service.
    Do you’ve any? Please let me recognise so that I may just subscribe.
    Thanks.

    Reply
  7. Hey! Someone in my Myspace group shared this website with us
    so I came to give it a look. I’m definitely loving the information.
    I’m book-marking and will be tweeting this to my followers!
    Excellent blog and outstanding design and style.

    Reply

Leave a Comment