We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 663e247 commit 1f8bc15Copy full SHA for 1f8bc15
packages/schema/src/utils/ast-utils.ts
@@ -106,8 +106,7 @@ export function resolveImportUri(imp: ModelImport): URI | undefined {
106
&& !imp.path.startsWith('/') // Respect absolute paths (Unix)
107
&& !/^[a-zA-Z]:\\/.test(imp.path) // Respect absolute paths (Windows)
108
) {
109
- imp.path = findNodeModulesFile(imp.path) ?? '';
110
- if (!imp.path) return undefined; // If the path is empty, return undefined
+ imp.path = findNodeModulesFile(imp.path) ?? imp.path;
111
}
112
113
const dirUri = Utils.dirname(getDocument(imp).uri);
0 commit comments