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

@nx-plus/docusaurus with nx@16 #290

Open
DerHerrGammler opened this issue May 3, 2023 · 3 comments
Open

@nx-plus/docusaurus with nx@16 #290

DerHerrGammler opened this issue May 3, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@DerHerrGammler
Copy link

nx 16 is out and the update to nx 16 is blocked by the supported range of @nx-plus/docusaurus.
Could you update the supported range of nx?

@DerHerrGammler DerHerrGammler added the bug Something isn't working label May 3, 2023
@arenier
Copy link

arenier commented May 4, 2023

Same problem here

@DerHerrGammler
Copy link
Author

I dont now if this is also a valid way for you @arenier but I removed @nx-plus/docusaurus from my project and switched to directly call docusaurus in my configuration of the project.

I configured following package.json in the app project:

{
    "name": "blog",
    "scripts": {
        "serve": "docusaurus start --port 64003 --no-open",
        "build": "docusaurus build --out-dir ../../dist/apps/blog"
    }
}

works totally fine for me eventually also for you instead of using this package

@wraeth-eth
Copy link

If using project.json, something like this should work too:

...
  "targets": {
    "build": {
      "executor": "nx:run-commands",
      "options": {
        "command": "docusaurus build --config docusaurus.config.js --out-dir dist",
        "cwd": "<path-to-your-app-package>"
      }
    },
    "serve": {
      "executor": "nx:run-commands",
      "options": {
        "command": "docusaurus start --port 3000 --config docusaurus.config.js",
        "cwd": "<path-to-your-app-package>"
      }
    }
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants