ZachJW34 / nx-plus

Collection of Nx Community Plugins
MIT License
300 stars 52 forks source link

Update Location of typescript-import-locator #287

Open Speuce opened 1 year ago

Speuce commented 1 year ago

Current Behavior

When running npm i on a project with nx >= 15.9.0:

Failed to patch Nx dep-graph for Vue support. Error: Could not find Nx's dep-graph builder in node_modules
    at getFilePath (/Users/matt/Documents/GitHub/appbuilder/node_modules/@nx-plus/vue/patch-nx-dep-graph.js:39:9)
    at patchNxDepGraph (/Users/matt/Documents/GitHub/appbuilder/node_modules/@nx-plus/vue/patch-nx-dep-graph.js:10:22)
    at Object.<anonymous> (/Users/matt/Documents/GitHub/appbuilder/node_modules/@nx-plus/vue/patch-nx-dep-graph.js:42:1)
    at Module._compile (node:internal/modules/cjs/loader:1275:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
    at Module.load (node:internal/modules/cjs/loader:1133:32)
    at Module._load (node:internal/modules/cjs/loader:972:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    at node:internal/main/run_main_module:23:47

Expected Behavior

Successfully patched Nx dep-graph for Vue support.

Related Issue(s)

Fixes #286

Brief Description

This Commit in the nx project moved typescript-import-locator to another location. This PR adds that new location to the possiblePaths list in patch-nx-graph.js.

gionkunz commented 11 months ago

@ZachJW34, can you please check this PR?