Skip to content

TypeError occuring during run command execution #6500

@shertu

Description

@shertu

Current Behavior

When I execute a run command I get the following error:

image

Expected Behavior

The expected behaviour is for the CLI to run the NPM script inside of the lib or app.

This is a regression as previously on version 12.5.8 this issue did not occur.

Steps to Reproduce

This is my code repository.

Failure Logs

> nx run api-client:build

D:\shertu\zukte\node_modules\.pnpm\typescript@4.3.5\node_modules\typescript\lib\typescript.js:39486
            if (!host.fileExists(extendedConfigPath) && !ts.endsWith(extendedConfigPath, ".json" /* Json */)) {
                      ^

TypeError: host.fileExists is not a function
    at getExtendsConfigPath (D:\shertu\zukte\node_modules\.pnpm\typescript@4.3.5\node_modules\typescript\lib\typescript.js:39486:23)
    at parseOwnConfigOfJson (D:\shertu\zukte\node_modules\.pnpm\typescript@4.3.5\node_modules\typescript\lib\typescript.js:39418:38)
    at parseConfig (D:\shertu\zukte\node_modules\.pnpm\typescript@4.3.5\node_modules\typescript\lib\typescript.js:39364:13)
    at parseJsonConfigFileContentWorker (D:\shertu\zukte\node_modules\.pnpm\typescript@4.3.5\node_modules\typescript\lib\typescript.js:39185:28)
    at Object.parseJsonConfigFileContent (D:\shertu\zukte\node_modules\.pnpm\typescript@4.3.5\node_modules\typescript\lib\typescript.js:39141:16)
    at readTsConfigOptions (D:\shertu\zukte\node_modules\.pnpm\@nrwl+workspace@12.6.2_prettier@2.3.2\node_modules\@nrwl\workspace\src\utilities\typescript.js:29:21)
    at getCompilerHost (D:\shertu\zukte\node_modules\.pnpm\@nrwl+workspace@12.6.2_prettier@2.3.2\node_modules\@nrwl\workspace\src\utilities\typescript.js:52:21)
    at Object.resolveModuleByImport (D:\shertu\zukte\node_modules\.pnpm\@nrwl+workspace@12.6.2_prettier@2.3.2\node_modules\@nrwl\workspace\src\utilities\typescript.js:40:36)
    at TargetProjectLocator.findProjectWithImport (D:\shertu\zukte\node_modules\.pnpm\@nrwl+workspace@12.6.2_prettier@2.3.2\node_modules\@nrwl\workspace\src\core\target-project-locator.js:55:43)
    at D:\shertu\zukte\node_modules\.pnpm\@nrwl+workspace@12.6.2_prettier@2.3.2\node_modules\@nrwl\workspace\src\core\project-graph\build-dependencies\explicit-project-dependencies.js:12:53

Environment

  Node : 16.4.1
  OS   : win32 x64
  pnpm : 6.10.3

  nx : Not Found
  @nrwl/angular : Not Found
  @nrwl/cli : 12.6.2
  @nrwl/cypress : Not Found
  @nrwl/devkit : 12.6.2
  @nrwl/eslint-plugin-nx : Not Found
  @nrwl/express : Not Found
  @nrwl/jest : 12.6.2
  @nrwl/linter : 12.6.2
  @nrwl/nest : Not Found
  @nrwl/next : Not Found
  @nrwl/node : Not Found
  @nrwl/nx-cloud : Not Found
  @nrwl/react : Not Found
  @nrwl/schematics : Not Found
  @nrwl/tao : 12.6.2
  @nrwl/web : Not Found
  @nrwl/workspace : 12.6.2
  @nrwl/storybook : Not Found
  @nrwl/gatsby : Not Found
  typescript : 4.3.5

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions