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: Type error: Cannot find module ../core/build/types #3320

Closed
1 task done
AndreBClark opened this issue May 10, 2022 · 0 comments · Fixed by #3332
Closed
1 task done

🐛 BUG: Type error: Cannot find module ../core/build/types #3320

AndreBClark opened this issue May 10, 2022 · 0 comments · Fixed by #3332

Comments

@AndreBClark
Copy link

What version of astro are you using?

1.0.0-beta.27

Are you using an SSR adapter? If so, which one?

Netlify

What package manager are you using?

pnpm

What operating system are you using?

Linux POP!_os 22.04

Describe the Bug

when I run tsc -d to emit type definitions I get an error from a file within node_modules:

node_modules/astro/dist/types/@types/astro.d.ts:11:36 - error TS2307: Cannot find module '../core/build/types' or its corresponding type declarations.

11 import type { PageBuildData } from '../core/build/types';
                                      ~~~~~~~~~~~~~~~~~~~~~


Found 1 error in node_modules/astro/dist/types/@types/astro.d.ts:11

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-vnnnud?file=tsconfig.json&view=editor

Participation

  • I am willing to submit a pull request for this issue.
@AndreBClark AndreBClark changed the title 🐛 BUG: 🐛 BUG: Type error: Cannot find module ../core/build/types May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants