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

Preview failing in NX 20 #241

Open
mainawycliffe opened this issue Nov 22, 2024 · 1 comment
Open

Preview failing in NX 20 #241

mainawycliffe opened this issue Nov 22, 2024 · 1 comment

Comments

@mainawycliffe
Copy link

Current Behavior

Fails to do a preview build

Expected Behavior

Should buiild successfully and allow preview

GitHub Repo

No response

Steps to Reproduce

  1. Run nx run portals:preview

Nx Report

NX   Report complete - copy this into the issue template

Node           : 22.11.0
OS             : darwin-arm64
Native Target  : aarch64-macos
pnpm           : 9.5.0

nx                 : 20.1.2
@nx/js             : 20.1.2
@nx/jest           : 20.1.2
@nx/eslint         : 20.1.2
@nx/workspace      : 20.1.2
@nx/angular        : 20.1.2
@nx/devkit         : 20.1.2
@nx/esbuild        : 20.1.2
@nx/eslint-plugin  : 20.1.2
@nx/playwright     : 20.1.2
@nx/vite           : 20.1.2
@nx/web            : 20.1.2
@nx/webpack        : 20.1.2
typescript         : 5.5.4
---------------------------------------
Registered Plugins:
@nx/playwright/plugin
@nx/eslint/plugin
---------------------------------------
Community plugins:
@fortawesome/angular-fontawesome : 0.15.0
@ngrx/signals                    : 18.0.2
@nx-toolkits/firebase            : 0.7.6
@testing-library/angular         : 17.3.0
ngx-toastr                       : 19.0.0
qwik-nx                          : 2.3.1

Failure Logs

Error: qwikCity plugin "routesDir" not found: Error: ENOENT: no such file or directory, stat '/Users/mainawycliffe/projects/myyard/src/routes'
    at validatePlugin (/Users/mainawycliffe/projects/myyard/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_@types+n_v4s5rxyzf2za5nbdmmih23gmqu/node_modules/@builder.io/qwik-city/lib/vite/index.cjs:22243:11)
    at async configResolved (/Users/mainawycliffe/projects/myyard/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_@types+n_v4s5rxyzf2za5nbdmmih23gmqu/node_modules/@builder.io/qwik-city/lib/vite/index.cjs:27280:7)
    at async Promise.all (index 1)
    at async resolveConfig (file:///Users/mainawycliffe/projects/myyard/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-p3C6MpSJ.js:69696:5)
    at async vitePreviewServerExecutor (/Users/mainawycliffe/projects/myyard/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]_@swc+helpers_x5ah45ymkza2kp3kx6eea55nfa/node_modules/@nx/vite/src/executors/preview-server/preview-server.impl.js:43:22)
    at async getLastValueFromAsyncIterableIterator (/Users/mainawycliffe/projects/myyard/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_ty_ebfgdql3et2pzmvihir237ihuy/node_modules/nx/src/utils/async-iterator.js:15:19)
    at async iteratorToProcessStatusCode (/Users/mainawycliffe/projects/myyard/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_ty_ebfgdql3et2pzmvihir237ihuy/node_modules/nx/src/command-line/run/run.js:39:25)
    at async handleErrors (/Users/mainawycliffe/projects/myyard/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_ty_ebfgdql3et2pzmvihir237ihuy/node_modules/nx/src/utils/handle-errors.js:8:24)
    at async process.<anonymous> (/Users/mainawycliffe/projects/myyard/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_ty_ebfgdql3et2pzmvihir237ihuy/node_modules/nx/bin/run-executor.js:59:28)

Additional Information

No response

@dmitry-stepanenko
Copy link
Contributor

hey @mainawycliffe thank you for raising this. I have a draft for nx20 support, will ship it in the nearest future

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

2 participants