When installing an older version of @atlaskit/adf-utils I bumped into an error which I cannot overcome.
error TS2688: Cannot find type definition file for ‘prosemirror-model’.
error TS2688: Cannot find type definition file for ‘prosemirror-state’.
I understand that the type definitions of these packages are only stubs, but typescript still does not compile. Version of TS is 3.9.10 and I cannot update it.
Hey matituda, I just spotted this from the prosemirror summary email.
The atlaskit/adf-utils is a package developed internally at Atlassian (along with other packages with the atlaskit scope), and doesn’t make up part of the official prosemirror packages.
We (Atlassian) did some restructuring of various codebases last year which may have knocked out our open source mirroring and npm publishing for this package.
If I don’t get around to it this weekend, I’ll have a look when I’m back at work next Monday, and give an update.
Thank you. It’s interesting to know about the restructuring, since I’ve noticed that the same version of adf-utils which worked fine before the holiday break now throws type errors.
The workaround for now is to use skipLibCheck, but we plan to import this tool I’m working on as a dependency to another project, and there it won’t be possible to do that.
Thank you for the response and I will be waiting for an update!
Hey @matiduda - I’ve just had a look - and the publishing for the package you’ve mentioned the problem is originating from is publishing as expected.
I’ve just reread your message and realised you’re explicitly using an old version - in more recent of our editor packages we are using versions of prosemirror with bundled types - and are unlikely to provide support for the old versions without the bundled types.
An additional note on the @atlaskit/ scoped packages - these have minimal support beyond through the Atlassian ecosystem forums.
Thank you for the reply.
As the builders are the only thing I really need, I just decided to import them directly to the source code without installing the whole adf-utils package.