diff --git a/packages/uni-cli-shared/src/easycom.ts b/packages/uni-cli-shared/src/easycom.ts index f659b9f2db5..c667f2f457f 100644 --- a/packages/uni-cli-shared/src/easycom.ts +++ b/packages/uni-cli-shared/src/easycom.ts @@ -68,7 +68,7 @@ export function initEasycoms( componentsDir, ...initUniModulesEasycomDirs(uniModulesDir), ], - rootDir: inputDir, + rootDir: path.resolve(inputDir), autoscan: !!(easycom && easycom.autoscan), custom: (easycom && easycom.custom) || {}, extensions: [...(isX ? ['.uvue'] : []), ...['.vue', '.jsx', '.tsx']],