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
After upgrading my project to latest Astro 2.0.2 and upgrading all the @astrojs/* plugins, also @astrojs/mdx, running tsc --noEmit results in the following missing properties:
tsc --noEmit
node_modules/.pnpm/astro@2.0.2_@types+node@18.11.18/node_modules/astro/client-base.d.ts:
115:31 - error TS2339: Property 'rawContent' does not exist on type 'MDX'.
115 export const rawContent: MDX['rawContent'];
~~~~~~~~~~~~
node_modules/.pnpm/astro@2.0.2_@types+node@18.11.18/node_modules/astro/client-base.d.ts:
116:36 - error TS2339: Property 'compiledContent' does not exist on type 'MDX'.
116 export const compiledContent: MDX['compiledContent'];
~~~~~~~~~~~~~~~~~
Found 2 errors in the same file, starting at: node_modules/.pnpm/astro@2.0.2_@types+node@18.11.18/node_modules/astro/client-base.d.ts:115
The errors refer to astro/client-base.d.ts which has the following code:
And indeed, these two properties are omitted from MDXInstance in astro.d.ts:
However, the project itself runs fine with astro dev command.
Link to Minimal Reproducible Example
n/a
Participation
I am willing to submit a pull request for this issue.
The text was updated successfully, but these errors were encountered:
madrus
changed the title
Astro 2 upgrade results in missing MDX properties: rawContent and compiledContent
Astro 2 upgrade give Typescipt errors re. missing MDX properties: rawContent and compiledContent
Jan 29, 2023
madrus
changed the title
Astro 2 upgrade give Typescipt errors re. missing MDX properties: rawContent and compiledContent
Astro 2 upgrade gives Typescipt errors re. missing MDX properties: rawContent and compiledContent
Jan 29, 2023
madrus
changed the title
Astro 2 upgrade gives Typescipt errors re. missing MDX properties: rawContent and compiledContent
Astro 2 upgrade gives Typescript errors re. missing MDX properties: rawContent and compiledContent
Jan 29, 2023
What version of
astro
are you using?2.0.2
Are you using an SSR adapter? If so, which one?
none
What package manager are you using?
pnpm
What operating system are you using?
Mac
Describe the Bug
After upgrading my project to latest Astro 2.0.2 and upgrading all the
@astrojs/*
plugins, also@astrojs/mdx
, runningtsc --noEmit
results in the following missing properties:The errors refer to
astro/client-base.d.ts
which has the following code:And indeed, these two properties are omitted from
MDXInstance
inastro.d.ts
:However, the project itself runs fine with
astro dev
command.Link to Minimal Reproducible Example
n/a
Participation
The text was updated successfully, but these errors were encountered: