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

Support monorepos like TurboRepo. #640

Open
chrisbull opened this issue Dec 7, 2024 · 2 comments
Open

Support monorepos like TurboRepo. #640

chrisbull opened this issue Dec 7, 2024 · 2 comments
Labels
question Further information is requested

Comments

@chrisbull
Copy link

'react-refresh/only-export-components': [

Issue is that NextJS isn't detected when using a monorepo.

I think local-pkg doesn't recognize that I have "next" in my ./apps/web/package.json so eslint is throwing errors for metadata

@antfu
Copy link
Owner

antfu commented Dec 9, 2024

Couldn't you also install next in your top-level package.json?

@antfu antfu added the question Further information is requested label Dec 9, 2024
@pauliesnug
Copy link

Couldn't you also install next in your top-level package.json?

Yes, this is the recommended solution. Build tools and core libraries should be installed in the top-level Turborepo package.json file anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants