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

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

Closed
1 of 4 tasks
ChristopherPHolder opened this issue Jul 12, 2024 · 2 comments
Closed
1 of 4 tasks

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

ChristopherPHolder opened this issue Jul 12, 2024 · 2 comments
Assignees

Comments

@ChristopherPHolder
Copy link

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

@FrozenPandaz FrozenPandaz added the scope: bundlers Issues related to webpack, rollup label Jul 16, 2024
@jaysoo
Copy link
Member

jaysoo commented Jul 16, 2024

@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.

Copy link

This issue has been automatically marked as stale because more information has not been provided within 7 days.
It will be closed in 21 days if no information is provided.
If information has been provided, please reply to keep it active.
Thanks for being a part of the Nx community! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants