Skip to content

Can't serve app from root folder #244

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

Open
ertl opened this issue Mar 22, 2025 · 1 comment
Open

Can't serve app from root folder #244

ertl opened this issue Mar 22, 2025 · 1 comment

Comments

@ertl
Copy link

ertl commented Mar 22, 2025

Current Behavior

when I execute npx nx server myapp from the root folder I get an error.

when I execute it from the app folder it works.

My workspace looks like this:

workspace/
│── apps/
│   ├── my-app/
│   │   ├── src/
│   │   │   ├── routes/
│   │   │   ├── components/
│   │   │   ├── entry.dev.tsx
│   │   │   ├── entry.preview.tsx
│   │   │   ├── entry.ssr.tsx
│   │   │   ├── root.tsx
│   │   │   ├── global.css
│   │   ├── project.json
│   │   ├── tsconfig.json
│   │   ├── tsconfig.app.json
│   │   ├── vite.config.ts
│   │   ├── package.json
│── node_modules/
│── .nx/
│── .gitignore
│── nx.json
│── package.json
│── tsconfig.base.json

It looks like the QwikVitePluginOptionsStub contains wrong paths, when executed in the root folder.
Image

Expected Behavior

Execution of npx nx server myapp from the root folder should work

GitHub Repo

No response

Steps to Reproduce

Nx Report

Node           : 22.14.0
OS             : win32-x64
Native Target  : x86_64-windows
pnpm           : 9.6.0

nx                     : 20.6.1
@nx/js                 : 20.6.1
@nx/eslint             : 20.6.1
@nx/workspace          : 20.6.1
@nx/devkit             : 20.6.1
@nx/eslint-plugin      : 20.6.1
@nx/module-federation  : 20.6.1
@nx/react              : 20.6.1
@nx/vite               : 20.6.1
@nx/web                : 20.6.1
typescript             : 5.7.3
---------------------------------------
Community plugins:
qwik-nx : 3.0.0

Failure Logs

Additional Information

No response

@gnemanja
Copy link

gnemanja commented May 5, 2025

Same issue. After updating to 3.0.0 and running:
nx run app:start
I get an error:
qwikRouter plugin "routesDir" not found: Error: ENOENT: no such file or directory, stat '/Users/user/Desktop/workspace/src/routes'
Seems like it is running in wrong folder?

If I navigate to the app folder before running the app, it works normally.

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