nrwl / nx

Smart Monorepos · Fast CI

Home Page:https://nx.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@nx/vite:convert-to-inferred is looking outside the repo

ChristopherPHolder opened this issue · comments

Current Behavior

In a project located at C:/Users/christopher.holder/Projects/app-speed

I ran nx g @nx/vite:convert-to-inferred --project audit-store

And got these errors:

TSConfckParseError: parsing C:/Users/christopher.holder/Projects/user-flow/packages/user-flow-gh-integration/tsconfig.spec.json failed: Error: ENOENT: no such file or directory, open 'C:\Users\christopher.holder\Projects\user-flow\packages\user-flow-gh-integration\tsconfig.spec.json'
    at file:///C:/Users/christopher.holder/Projects/app-speed/node_modules/tsconfck/src/parse.js:113:10 {
  code: 'PARSE_FILE',
  cause: [Error: ENOENT: no such file or directory, open 'C:\Users\christopher.holder\Projects\user-flow\packages\user-flow-gh-integration\tsconfig.spec.json'] {
    errno: -4058,
    code: 'ENOENT',
    syscall: 'open',
    path: 'C:\\Users\\christopher.holder\\Projects\\user-flow\\packages\\user-flow-gh-integration\\tsconfig.spec.json'
  },
  tsconfigFile: 'C:/Users/christopher.holder/Projects/user-flow/packages/user-flow-gh-integration/tsconfig.spec.json'
}

Which means it is trying to change files outside the current repo!

Expected Behavior

Not to attempt to change files out side the current path!

GitHub Repo

https://github.com/ChristopherPHolder/app-speed

Steps to Reproduce

  1. npm ci
  2. npx nx g @nx/vite:convert-to-inferred --project audit-store

Nx Report

Node   : 20.11.1
OS     : win32-x64
npm    : 10.8.1

nx                 : 19.4.2
@nx/js             : 19.4.2
@nx/jest           : 19.4.2
@nx/linter         : 19.4.2
@nx/eslint         : 19.4.2
@nx/workspace      : 19.4.2
@nx/angular        : 19.4.2
@nx/cypress        : 19.4.2
@nx/devkit         : 19.4.2
@nx/esbuild        : 19.4.2
@nx/eslint-plugin  : 19.4.2
@nx/node           : 19.4.2
@nx/plugin         : 19.4.2
@nx/storybook      : 19.4.2
@nrwl/tao          : 19.4.2
@nx/vite           : 19.4.2
@nx/web            : 19.4.2
@nx/webpack        : 19.4.2
typescript         : 5.4.5
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
@nx/vite/plugin
---------------------------------------
Community plugins:
@rx-angular/cdk      : 18.0.0
@rx-angular/state    : 18.0.0
@rx-angular/template : 18.0.0
@storybook/angular   : 8.1.9
nx-release           : 3.3.0
---------------------------------------
Local workspace plugins:
         @app-speed/aws-deploy

Failure Logs

No response

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@ChristopherPHolder When I cloned the repo I don't see a project for audit-store, and the Nx version is 19.3.0 not 19.4.2.

Once I updated to 194.2 and ran the generator it seems to work on the projects in the repo. I haven't tested it on Windows yet, so it could be an issue there.