Skip to content

Can't serve app from root folder #244

@ertl

Description

@ertl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions