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

Build fails in monorepo #305

Closed
1 task
Boimb opened this issue Jul 5, 2023 · 3 comments
Closed
1 task

Build fails in monorepo #305

Boimb opened this issue Jul 5, 2023 · 3 comments

Comments

@Boimb
Copy link

Boimb commented Jul 5, 2023

What version of starlight are you using?

0.4.1

What version of astro are you using?

2.7.0

What package manager are you using?

pnpm

What operating system are you using?

Windows

What browser are you using?

Chrome

Describe the Bug

I'm building a project with pnpm workspaces and turbo repo.
Starlight is one of the packages of this repo.

Dev env is working seamlessly.
Build is failing tho.
I've tried the same setup in both "standalone" and "monorepo" envs, and it seems issue is related to monorepo env as "standalone" works perfectly.
Here's the error message I'm getting:

astro:build:  error   Cannot find module 'C:\path_to_monorepo\docs\renderers.mjs' imported from C:\path_to_monorepo\docs\astro\dist\node_modules\.pnpm\@[email protected][email protected]\node_modules\@astrojs\starlight\404.astro.mjs

Starlight root is at C:\path_to_monorepo\docs\astro so one level above as the requested file. Seem path related.

Thx for your support.

Link to Minimal Reproducible Example

No response

Participation

  • I am willing to submit a pull request for this issue.
@HiDeoo
Copy link
Member

HiDeoo commented Jul 5, 2023

For reference, the issue is tracked in withastro/astro#7561.

A potential temporary workaround should be to downgrade Astro to v2.6.6.

@Boimb
Copy link
Author

Boimb commented Jul 5, 2023

Dang. How did I miss that.
Thx for heads up.

@delucis
Copy link
Member

delucis commented Jul 5, 2023

Thanks for the report @Boimb and sorry for the disruption. Given this isn’t something we can fix inside Starlight itself, I hope it’s OK for me to close this issue as a duplicate and hopefully we’ll get the Astro bug fixed soon. We can use withastro/astro#7561 to track progress.

@delucis delucis closed this as not planned Won't fix, can't repro, duplicate, stale Jul 5, 2023
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

No branches or pull requests

3 participants