!836 modify errorfile path tip

Merge pull request !836 from yfwang6/cherry-pick-1658114565
This commit is contained in:
openharmony_ci
2022-07-21 09:22:13 +00:00
committed by Gitee
+1 -1
View File
@@ -98,7 +98,7 @@ function loadEntryObj(projectConfig) {
const pages = manifest.pages;
pages.forEach((element) => {
const sourcePath = element.replace(/^\.\/ets\//, '');
const fileName = projectConfig.projectPath + path.sep + sourcePath + '.ets';
const fileName = path.resolve(projectConfig.projectPath, sourcePath + '.ets');
if (fs.existsSync(fileName)) {
projectConfig.entryObj['./' + sourcePath] = fileName + '?entry';
} else {