You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the change in 0.1.18 of the RichTextNodeType type from an enum to a const variable, the import and export in @prismicio/richtext is not working anymore.
If you have @prismicio/richtext with version 2.0.0-beta.1, and your version of @prismicio/types is 0.1.18, you will have an issue with your types (especially if you try to compile).
Additional Details
Here is the interesting part of my package-lock.json :
I try to compile my code with the following command : npx tsc --outDir dist
And I get the following error :
node_modules/@prismicio/richtext/dist/index.d.ts:10:62 - error TS2749: 'RichTextNodeType' refers to a value, but is being used as a type here. Did you mean 'typeof RichTextNodeType'?
10 declare type RichTextFunctionSerializer<ReturnType> = (type: RichTextNodeType, node: RTAnyNode, text: string | undefined, children: ReturnType[], key: string) => ReturnType | null | undefined;
~~~~~~~~~~~~~~~~
node_modules/@prismicio/richtext/dist/index.d.ts:59:11 - error TS2749: 'RichTextNodeType' refers to a value, but is being used as a type here. Did you mean 'typeof RichTextNodeType'?
59 type: RichTextNodeType;
~~~~~~~~~~~~~~~~
What is expected?
The compilation should work as intended
What is actually happening?
With the change in 0.1.18 of the RichTextNodeType type from an enum to a const variable, the import and export in @prismicio/richtext is not working anymore.
The text was updated successfully, but these errors were encountered:
Versions
Reproduction
With the change in 0.1.18 of the
RichTextNodeType
type from an enum to a const variable, the import and export in @prismicio/richtext is not working anymore.If you have @prismicio/richtext with version
2.0.0-beta.1
, and your version of @prismicio/types is0.1.18
, you will have an issue with your types (especially if you try to compile).Additional Details
Here is the interesting part of my package-lock.json :
Steps to reproduce
I try to compile my code with the following command :
npx tsc --outDir dist
And I get the following error :
What is expected?
The compilation should work as intended
What is actually happening?
With the change in 0.1.18 of the
RichTextNodeType
type from an enum to a const variable, the import and export in @prismicio/richtext is not working anymore.The text was updated successfully, but these errors were encountered: