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]: Unable to create monorepo with @modern-js/create #5823

Closed
yf-yang opened this issue Jun 14, 2024 · 8 comments
Closed

[Bug]: Unable to create monorepo with @modern-js/create #5823

yf-yang opened this issue Jun 14, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@yf-yang
Copy link

yf-yang commented Jun 14, 2024

Version

System:
    OS: macOS 13.2.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Memory: 1.64 GB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
Browsers:
    Chrome: 125.0.6422.144
    Safari: 16.3

@modern-js/create v2.53.0

Details

When using {"solution": "monorepo"} option doc

[ERROR] solution is not valid 
🚶  Load Generator...[WARN] load sub generator failed

I guess the cli has not yet supported it. Is there any workaround to directly use the monorepo-generator?

Reproduce link

Nope

Reproduce Steps

pnpm create @modern-js -c '{"solution": "monorepo"}' modern
@yf-yang yf-yang added the bug Something isn't working label Jun 14, 2024
@yf-yang
Copy link
Author

yf-yang commented Jun 14, 2024

Hmmm seems the feature is recently removed
#5804

@caohuilin Would you please provide a link of the "community solution", thank you!

@zllkjc
Copy link
Member

zllkjc commented Jun 14, 2024

Hey, we no longer support creating Monorepo for Modern.js and recommend using the community's Monorepo tool directly like rush、nx and maybe juest pnpm-workspaces...

@yf-yang
Copy link
Author

yf-yang commented Jun 14, 2024

Sure, do you have any starter example repo?

@zllkjc
Copy link
Member

zllkjc commented Jun 14, 2024

Maybe you can see https://nx.dev/getting-started/intro

@yf-yang
Copy link
Author

yf-yang commented Jun 14, 2024

Sorry, I am not just asking for a monorepo. Is there a modern-js monorepo example with the configuration already set that I can start with?

@zllkjc
Copy link
Member

zllkjc commented Jun 14, 2024

Get, we don't have it now, you can first create an monorepo, and run npx @modern-js/create in a directory of monorepo where you want start your project

@yf-yang
Copy link
Author

yf-yang commented Jun 14, 2024

Fine, I'll try to follow the doc to make one.

@yf-yang yf-yang closed this as completed Jun 14, 2024
@yf-yang
Copy link
Author

yf-yang commented Jun 14, 2024

That would be better if you can offer more examples like module federation does. Not sure if that's aligned with your okr 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants