Giter Club home page Giter Club logo

Comments (11)

skoropadas avatar skoropadas commented on May 26, 2024 1

I also found another problem that parsimmon package is not installed after adding ng-doc to the project, I'll fix that one in a few minutes, but ofc you can install it manually to fix the issue.

UPD: Fixed in 16.6.4

from ng-doc.

edumserrano avatar edumserrano commented on May 26, 2024 1

Feel free to close this whenever you want.

As cheeky little nudge, I've created a question on the discussions Q&A that you might be able to help with #70

from ng-doc.

skoropadas avatar skoropadas commented on May 26, 2024 1

the issue with parsimmon was already fixed. this bug is waiting this PR - taiga-family/ng-morph#76

from ng-doc.

skoropadas avatar skoropadas commented on May 26, 2024 1

@edumserrano not sure, looks like it's related to the windows cmd, because usually this message means that schematic command could not understand the current path where you are running it.

I need to check it, but I'm not at home, so I'll be able to do that only on Tuesday, so yes pls create a separate issue 🙏

from ng-doc.

edumserrano avatar edumserrano commented on May 26, 2024 1

I can confirm this is now working as expected on the latest version. Thank you!

from ng-doc.

skoropadas avatar skoropadas commented on May 26, 2024

Hey thanks for the bug report, are you angular app is standalone?

from ng-doc.

edumserrano avatar edumserrano commented on May 26, 2024

No, I just did ng new and on the prompts:

  • Would you like to add Angular routing? answered no
  • Which stylesheet format would you like to use? answered less

This by default does not create a standalone app.

from ng-doc.

skoropadas avatar skoropadas commented on May 26, 2024

Yep, I see. The issue lies with the ng-morph package that I'm using for the schematics. It appears that the newest version of @angular-devkit/core used by ng-morph no longer includes virtual-fs. I will submit a pull request to the ng-morph repository to resolve this problem and update it in my library.

As a workaround, you can follow these steps:

  • Manually install version 16.0.0 of @angular-devkit/core by running the command: npm i @angular-devkit/[email protected].
  • After installing, run the schematics using ng add @ng-doc/add. Everything should work fine after that.

from ng-doc.

edumserrano avatar edumserrano commented on May 26, 2024

Thanks. I can confirm the suggested workarounds work. For clarity:

  1. ng new
  2. npm i @angular-devkit/[email protected]
  3. npm i parsimmon
  4. ng add @ng-doc/add

The above results in a success setup of NgDoc.

from ng-doc.

edumserrano avatar edumserrano commented on May 26, 2024

Also, not sure it's related with this, but after getting it to work as described above I tried:
ng g @ng-doc/builder:page "Installation"

and got the error:

The "path" argument must be of type string. Received undefined

Is this somehow related or should I open a new issue?

EDIT: same for the ng g @ng-doc/builder:category "Getting Started" command.

from ng-doc.

skoropadas avatar skoropadas commented on May 26, 2024

🎉 This issue has been resolved in version 16.6.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

from ng-doc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.