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 · 11 comments
Open

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

SemAiSoft opened this issue Nov 20, 2024 · 11 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 [email protected] workspace
cd workspace
npm install @nx/[email protected] -D
npx [email protected] g @nx/js:init
npm install @nstudio/[email protected] -D
npx [email protected] g @nstudio/xplat:init
npx [email protected] 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 [email protected] workspace
cd workspace
npm install @nx/[email protected] -D
npx [email protected] g @nx/js:init
npm i @angular-devkit/schematics -D
npm install @nstudio/[email protected] -D
npx [email protected] g @nstudio/xplat:init
npx [email protected] 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 [email protected] 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 [email protected] g @nstudio/xplat:init

That installs cypress and other packages... then I can go on and create apps with this command
npx [email protected] 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 [email protected] g @nstudio/xplat:init

That installs cypress and other packages... then I can go on and create apps with this command npx [email protected] 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.

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