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

Remix app cannot be served on Windows #291

Closed
NordlingDev opened this issue Jun 5, 2023 · 0 comments · Fixed by nrwl/nx#17688
Closed

Remix app cannot be served on Windows #291

NordlingDev opened this issue Jun 5, 2023 · 0 comments · Fixed by nrwl/nx#17688
Assignees

Comments

@NordlingDev
Copy link

NordlingDev commented Jun 5, 2023

I get the following error when serving a Remix app with nx serve remix-demo:

TypeError: Cannot read properties of undefined (reading 'data')
    at getRelativeDependencyPaths (F:\test\node_modules\@nx\remix\src\utils\create-watch-paths.js:27:25)
    at Object.<anonymous> (F:\test\node_modules\@nx\remix\src\utils\create-watch-paths.js:20:16)
    at Generator.next (<anonymous>)
    at fulfilled (F:\test\node_modules\tslib\tslib.js:164:62)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Warning: run-commands command "remix dev" exited with non-zero status code

I believe the create-watch-paths utils are not taking Windows platform into account when mapping file paths since the path separator is \ (i.e. apps\remix-demo) instead of / (i.e. apps/remix-demo).

NX report

Node   : 18.14.1
OS     : win32 x64
npm    : 9.3.1
Hasher : Native

nx                 : 16.2.2
@nx/js             : 16.2.2
@nx/jest           : 16.2.2
@nx/linter         : 16.2.2
@nx/workspace      : 16.2.2
@nx/cypress        : 16.2.2
@nx/devkit         : 16.2.2
@nx/esbuild        : 16.2.2
@nx/eslint-plugin  : 16.2.2
@nx/node           : 16.2.2
@nx/react          : 16.2.2
@nrwl/tao          : 16.2.2
@nx/vite           : 16.2.2
@nx/web            : 16.2.2
typescript         : 5.0.4
---------------------------------------
Community plugins:
@nx/remix : 16.2.0
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

Successfully merging a pull request may close this issue.

2 participants