-
Notifications
You must be signed in to change notification settings - Fork 52
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
Installation Fails #315
Comments
Well, I figured out another way that worked for me... I ran the first command without any options and initiated the workspace with an angular app. Only then I could use
|
Just one question remains... I ended up using xplat after watching NativeScript's webinar on Code Sharing and reading its v5 documentation on this subject, although the latest docs at this moment are for v7. In the webinar, the idea was reusing the code, but using xplat I noticed that doesn't apply in the same way, and things are totally separated in different app directories and there was no obvious relation at first glance. Only for the Electron app, I was asked to provide the name of the web project, and I'm not yet sure how they are connected in this setup. May you please shed some light on this matter? My goal is to build all web, mobile, and desktop apps using a single Angular codebase and have codes & configurations shared among them as much as possible, yet having a proper, maintainable, and scalable architecture. |
I am still struggling to get this to work as well, because my existing angular app is structured like Manfred suggests, and this architecture needs you to think in a different way. See https://youtu.be/4Ee96X6W3Nc |
Well, I guess I'd take the official approach to use NativeScript with Angular, for now. I'd recommend it to you as well. It's the same method explained in the webinar and you can follow the instructions from the docs in order to set it up on your existing project. Yet I'd like to learn more about xplat architecture and its approach and advantages if the authors join this conversation... But I'd like to have shared codes between my projects, not only a monorepo with separated codes in it. |
Turned out I was on NodeJS v18 while Angular v15 wasn't released yet to support it, but now it works just fine. I'd suggest handling such errors with a proper message to prevent confusion for newbies in the future. |
This is my first time trying to work with
NX
&xplat
, but I couldn't have a successful installation, unfortunately. I'm mainly usingpnpm
as my default package manager, but the result was the same when I tried it withnpm
andyarn
.Here are the global packages that are currently installed with all the package managers:
And here is what I've done in order to set my project up:
I have to add that using
pnpm nx
doesn't make any difference. It only makes sense if I don't havenx
globally and I'd need to run it from the project dependencies, yet even in that case, the installation fails with the same result.Here is the result of
nx report
for your reference:The text was updated successfully, but these errors were encountered: