Trouble integrating Astro plugin (@forastro/astro-nx) into Nx workspace + questions on publishing and Nx 20+ compatibility #33949
Closed
louiss0
started this conversation in
Feature Requests
Replies: 1 comment
-
|
It was my fault I forgot about this. I managed to fix it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Title: Trouble integrating Astro plugin (@forastro/astro-nx) into Nx workspace + questions on publishing and Nx 20+ compatibility
Hi Nx team,
I’m running into issues trying to use the Astro plugin (@forastro/astro-nx) within a minimal Nx workspace. I prepared a small reproduction and collected environment details and logs below. I’d also like guidance on the correct way to publish a community plugin so it remains compatible with Nx 20+.
What I’m trying to do
Observed behavior
nx g @forastro/astro-nx:appfails with: "The "@forastro/astro-nx" package does not support Nx generators."generators.jsonor plugin.json wiring (even though the published package claims generators/ executors in its files).Steps to reproduce (minimal)
cd astro-nx-repro pnpm nx g @forastro/astro-nx:app demo-app --no-interactive --verboseExpected behavior
Environment
nx report (from logs/nx-report.txt)
Failure logs (from logs/generator.log)
Tools used in the project
How the package.json is built (plugin authoring context)
scripts.buildformat (regex-checked)type: "module"publishConfig.access: "public"exportsmapping./srcinexports.ts->.jsforimportfieldsplugin.jsonexecutors.jsongenerators.jsonsrc/Questions for the Nx team
"type": "module") for Nx plugin resolution?plugin.json,generators.json, andexecutors.jsonlive at top-level and/or be explicitly exposed viafiles/exportsso Nx finds them when installed from npm?Additional info
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions