Commit 0b710a2
committed
fix(core): convert filePath to an absolute path before typescript resolves the module
Convert the filePath to an absolute path inside findProjectFromImport before calling
resolveImportWithTypescript, because TypeScript’s module resolution will not correctly traverse up
the directory tree toward the workspace root when given a relative path.
closed #339851 parent 768c580 commit 0b710a2
File tree
1 file changed
+8
-2
lines changed- packages/nx/src/plugins/js/project-graph/build-dependencies
1 file changed
+8
-2
lines changedLines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
149 | 155 | | |
150 | 156 | | |
151 | 157 | | |
152 | 158 | | |
153 | | - | |
| 159 | + | |
154 | 160 | | |
155 | 161 | | |
156 | 162 | | |
| |||
0 commit comments