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

HELP PLEEEEEASE! Bug in in latest version 20.0.3. #329

Open
SemAiSoft opened this issue Nov 20, 2024 · 15 comments
Open

HELP PLEEEEEASE! Bug in in latest version 20.0.3. #329

SemAiSoft opened this issue Nov 20, 2024 · 15 comments

Comments

@SemAiSoft
Copy link

SemAiSoft commented Nov 20, 2024

I followed the docs instruction, but can get it together running.

It kept failing during installation, as shown below. Using v19 is not working too.
Even though this is a fresh new project!
Screenshot from 2024-11-20 20-04-51

@jwrascoe
Copy link

@SemAiSoft I have the same issue... if its any help, the last version that I can get to work is with the following commands

npx create-nx-workspace@17.0.6 workspace
cd workspace
npm install @nx/js@17.0.6 -D
npx nx@17.0.6 g @nx/js:init
npm install @nstudio/xplat@17.0.1 -D
npx nx@17.0.6 g @nstudio/xplat:init
npx nx@17.0.6 g @nstudio/xplat:app

I am trying to figure out how to get a more recent release to work... will let you know if I figure it out.

@jwrascoe
Copy link

jwrascoe commented Nov 29, 2024

@SemAiSoft I got nx19 to work by doing this..

npx create-nx-workspace@19.8.13 workspace
cd workspace
npm install @nx/js@19.8.13 -D
npx nx@19.8.13 g @nx/js:init
npm i @angular-devkit/schematics -D
npm install @nstudio/xplat@19.0.0 -D
npx nx@19.8.13 g @nstudio/xplat:init
npx nx@19.8.13 g @nstudio/xplat:app

note: after you create your workspace add a .npmrc file to the root of your workspace to deal with legacy stuff..
Put this in the file...
legacy-peer-deps=true

For the moment I still have not figured out how to get v20 working.

@SemAiSoft
Copy link
Author

SemAiSoft commented Nov 29, 2024

npx nx@19.8.13 g @nstudio/xplat:app

Thanks so much for the guide.
But I am usually stuck at cypress init error, during others generation as shown below.
Screenshot from 2024-11-29 09-45-40

Have tried nx reset. Any other ways to resolve this?

@jwrascoe
Copy link

@SemAiSoft in order for my solution to work you must start fresh, the commands I gave you will not work in an existing repo... that is you MUST start fresh

@SemAiSoft
Copy link
Author

SemAiSoft commented Nov 29, 2024

@SemAiSoft in order for my solution to work you must start fresh, the commands I gave you will not work in an existing repo... that is you MUST start fresh

Yes, thank you.

The point I also have to install all the nx plugins by 'nx add' command, that allows to be properly initiated and configured.
Where I am now, nx dev schematics not finding the sample web app name, suppose I want to use it for generating app or angular.
Seams, like version mismatch, though I have tried same versions to no avail.

Uploading Screenshot from 2024-11-29 11-29-22.png…

@jwrascoe
Copy link

@SemAiSoft I use this command to first get xplat installed correctly for both web and nativescript
npx nx@19.8.13 g @nstudio/xplat:init

That installs cypress and other packages... then I can go on and create apps with this command
npx nx@19.8.13 g @nstudio/xplat:app

Currently I am not having a problem with that.

I am also running LTS for node... perhaps that is the difference.

I also run on a Mac... maybe there is a difference on Windows?

@SemAiSoft
Copy link
Author

@SemAiSoft I use this command to first get xplat installed correctly for both web and nativescript npx nx@19.8.13 g @nstudio/xplat:init

That installs cypress and other packages... then I can go on and create apps with this command npx nx@19.8.13 g @nstudio/xplat:app

Currently I am not having a problem with that.

I am also running LTS for node... perhaps that is the difference.

I also run on a Mac... maybe there is a difference on Windows?

Thanks so much bro.
Pretty the same config, except that I am on Ubuntu Linux.

It just that I like their architectural organizations, else I would have gave up.
Meanwhile, I will try my luck with a few more options, and feed you back.

BIG THANKS for the support

@jwrascoe
Copy link

jwrascoe commented Nov 29, 2024

@SemAiSoft for the moment xplat will not work on Angular 19.. 18 is fine.

I am working on a work-around... I have been using xplat for years... I do like how its organized... perhaps @NathanWalker can weigh in on the correct way to make it work?

I just finished marking all of the xplat modules to standalone:true... but there are also a few more things with scss

@SemAiSoft
Copy link
Author

@SemAiSoft for the moment xplat will not work on Angular 19.. 18 is fine.

I am working on a work-around... I have been using xplat for years... I do like how its organized... perhaps @NathanWalker can weigh in on the correct way to make it work?

I just finished marking all of the xplat modules to standalone:true... but there are also a few more things with scss

Well well well, after millions of installs, reinstall, rm node_modules, rm .nx, etc... I finally settle for version 19.0.0 AND only web (nativescript, angular) apps creations. Nest and Electron are not working.

I hope this will be fixed soon as this is GREAT LAYER. Thanks to All.

@edusperoni
Copy link
Collaborator

Angular 19 isn't supported by nx yet. Once it is, nx will automatically migrate all components to standalone: false, I imagine.

@jwrascoe
Copy link

@edusperoni Thanks! I totally forgot to check if NX had caught up to Angular v19... yes, I agree.. it most likely "just work" once NX merges the Angular/v19 branch.. looks like they are close.

@jwrascoe
Copy link

jwrascoe commented Dec 2, 2024

@SemAiSoft @edusperoni Looks like NX will be releasing soon!

nrwl/nx#28847

So I figure we just need to then get a new XPLAT and things will be back to normal for us that want the latest and greatest?

@jwrascoe
Copy link

jwrascoe commented Dec 9, 2024

@edusperoni NX now supports angular 19, would you be able to update xplat?
https://nx.dev/nx-api/angular/documents/angular-nx-version-matrix
@SemAiSoft once thats done then you should be able to create a new workspace with nx, install xplat and all should be good.

@jwrascoe
Copy link

jwrascoe commented Dec 13, 2024

@edusperoni @NathanWalker is there any ETA when xplat will be able to install on the latest version a fresh workspace? Currently it's not working and fails where you init with this error. I have tried it with and without installing eslint and fails both for web and nativescript setup... I also ensured that the xplat directory does not exist (as indicated in the error)

Any ideas?

`npx nx@latest g @nstudio/xplat:init

NX Generating @nstudio/xplat:init

✔ Would you like to generate xplat supporting architecture now? You can also generate later with: nx generate @nstudio/xplat:init · web
✔ Do you prefer to use a frontend framework? · angular
✔ Please input a 2-3 character prefix to use with xplat generators: · app
✔ Packages installed successfully.
✔ Which linter would you like to use? · eslint
Fetching @nx/jest...
✔ Which linter would you like to use? · eslint
Error: Cannot create a new project features at libs/xplat. A project already exists in this directory.
at addProjectConfiguration (/Users/jwrascoe/dev/scratch/edq-repo/node_modules/nx/src/generators/utils/project-configuration.js:40:15)
at configureProject (/Users/jwrascoe/dev/scratch/edq-repo/node_modules/@nx/js/src/generators/library/library.js:239:46)
at libraryGeneratorInternal (/Users/jwrascoe/dev/scratch/edq-repo/node_modules/@nx/js/src/generators/library/library.js:45:11)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async libraryGenerator (/Users/jwrascoe/dev/scratch/edq-repo/node_modules/@nx/js/src/generators/library/library.js:27:12)
at async /Users/jwrascoe/dev/scratch/edq-repo/node_modules/@nx/devkit/src/utils/invoke-nx-generator.js:51:24
at async callRuleAsync (/Users/jwrascoe/dev/scratch/edq-repo/node_modules/@angular-devkit/schematics/src/rules/call.js:80:18)

NX Cannot create a new project features at libs/xplat. A project already exists in this directory.
`

@SemAiSoft
Copy link
Author

@edusperoni @NathanWalker is there any ETA when xplat will be able to install on the latest version a fresh workspace? Currently it's not working and fails where you init with this error. I have tried it with and without installing eslint and fails both for web and nativescript setup... I also ensured that the xplat directory does not exist (as indicated in the error)

Any ideas?

`npx nx@latest g @nstudio/xplat:init

NX Generating @nstudio/xplat:init

✔ Would you like to generate xplat supporting architecture now? You can also generate later with: nx generate @nstudio/xplat:init · web ✔ Do you prefer to use a frontend framework? · angular ✔ Please input a 2-3 character prefix to use with xplat generators: · app ✔ Packages installed successfully. ✔ Which linter would you like to use? · eslint Fetching @nx/jest... ✔ Which linter would you like to use? · eslint Error: Cannot create a new project features at libs/xplat. A project already exists in this directory. at addProjectConfiguration (/Users/jwrascoe/dev/scratch/edq-repo/node_modules/nx/src/generators/utils/project-configuration.js:40:15) at configureProject (/Users/jwrascoe/dev/scratch/edq-repo/node_modules/@nx/js/src/generators/library/library.js:239:46) at libraryGeneratorInternal (/Users/jwrascoe/dev/scratch/edq-repo/node_modules/@nx/js/src/generators/library/library.js:45:11) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async libraryGenerator (/Users/jwrascoe/dev/scratch/edq-repo/node_modules/@nx/js/src/generators/library/library.js:27:12) at async /Users/jwrascoe/dev/scratch/edq-repo/node_modules/@nx/devkit/src/utils/invoke-nx-generator.js:51:24 at async callRuleAsync (/Users/jwrascoe/dev/scratch/edq-repo/node_modules/@angular-devkit/schematics/src/rules/call.js:80:18)

NX Cannot create a new project features at libs/xplat. A project already exists in this directory. `

No way yet! The best is to stick with v19.0.0, not bad since Angular is same version.

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