-
Notifications
You must be signed in to change notification settings - Fork 19
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]: Nx16 not supported #376
Comments
Also even with Nx 15.9.0 it's failing
|
Any update on this? I too am looking to put an Astro project into my NX monorepo and we can't even npm i the astro extensions due to a restriction on not using legacy peer deps. Would be glad to work on some sort of PR if I knew where to start looking! |
The lack of response from nx on this issue makes me reconsider using nx |
Hey @leosvelperez :) Forgive me for not knowing, is there more to this issue other than updating the nx packages and then running the nx migrations? Like @doug-shontz above, I'm also happy to dedicate some time to this if I (or Doug) can get some pointers, Thanks! |
I don't think this extension is a Nx.dev official plugin. Sure, reconsider - but I wouldn't be pointing fingers at the nx team. My guess is that there are just not enough Astro users to help maintain this, and the author is using some other framework daily. Astro is also growing fast too. It would be interesting if the Astro team would help maintain a plugin. I will say from my experience that building component libs that export Astro pages/components didn't work super well. IDE issues and typescript typing issues. :( |
I thought it was, thanks for the info. |
Hey all! Apologies for the lack of updates here. As others have mentioned already, this is an OSS project that I basically maintain in my free time. I don't use Astro in my day-to-day work and it's not an official Nx plugin. We all have lives and lately, I've been through some stuff that has left me with little to no time or strength to dedicate to the project. I'll eventually be back and have more time, but unfortunately, I can't promise anything yet. I'd be more than happy to accept some contributions. If someone wants to tackle adding support for Nx 16, here are a few things to keep in mind:
So far, I've kept an eye on that by performing some manual testing. I've considered adding explicit E2E tests for that, but I haven't had the time to do so. It's something to do later. |
Honestly, isn't that what semvr is for? I would just suggest going for a major version update. While it is jumping way ahead and doesn't make 100% sense (semvr wise) sometimes I think pluings should just match their major versions with the target platform versions. So if Nx is at 16, this plugin releases its major as 16 then minors at whatever. Hoenstly though, better to just cut support of older Nx versions and let people pin what they need. |
@Lonli-Lokli The path error could be related to this: |
FWIW I was able to fix this by doing the following:
in my case, I needed Logs:
then I ran:
and then I'm on This should still be fixed though - Source: https://nx.dev/recipes/other/rescope#@nrwl-scope-end-of-life |
No really. The decision to support (or not) multiple versions has nothing to do with Semver. Semver doesn't dictate whether a plugin should support a single version of any tool or not. The point with supporting multiple versions is that regardless of the version of Nx you're using, you'd be able to use and benefit from all the new features or bug fixes from the latest version of this plugin. That was the goal. When supporting a single version, that can still be achieved but requires back-porting features and bug fixes to the lower versions of the plugins. So far, I preferred the former to avoid having to back-port things between versions, but given the still low usage of the plugin and in order to make upgrades easier, I'm going to go with supporting a single Nx version moving forward. So, I'll make the changes to support Nx 16, and as you suggested, I'm going to align the plugin version to the Nx version so it's easy to know which version to use based on your Nx version. I hope to have enough time today to make the changes and publish the release. |
Is there an existing issue for this?
What package does the issue affects?
@nxtensions/astro
Describe the bug
Nx16 not supported
https://nx.dev/recipes/other/rescope
Expected behavior
Nx16 supported
Steps to reproduce
npx create-nx-workspace@latest cv-dev --preset=empty
success
Link to minimal reproducible example
No response
Environment
Your repository uses a higher version of Nx (16.1.4) than your global CLI version (15.9.2)
For more information, see https://nx.dev/more-concepts/global-nx
Node : 18.16.0
OS : win32 x64
npm : 9.5.1
Hasher : Native
nx (global) : 15.9.2
nx : 16.1.4
@nrwl/jest : 12.8.0
@nrwl/linter : 12.8.0
@nx/workspace : 16.1.4
@nrwl/cypress : 12.8.0
@nx/devkit : 16.1.4
@nrwl/react : 12.8.0
@nrwl/storybook : 12.8.0
@nrwl/tao : 16.1.4
@nrwl/web : 12.8.0
nx-cloud : 16.0.5
Community plugins:
@nxtensions/astro : 3.5.0
The following packages should match the installed version of nx
- @nrwl/jest@12.8.0
- @nrwl/linter@12.8.0
- @nrwl/cypress@12.8.0
- @nrwl/react@12.8.0
- @nrwl/storybook@12.8.0
- @nrwl/web@12.8.0
To fix this, run
nx migrate nx@16.1.4
The text was updated successfully, but these errors were encountered: