diff --git a/compiler/src/compile_info.ts b/compiler/src/compile_info.ts index 50cf43f1d1b5f2e50608eb4222954d8aec040104..bd45a97d615bf3235349e23735549fb11129856c 100644 --- a/compiler/src/compile_info.ts +++ b/compiler/src/compile_info.ts @@ -289,18 +289,12 @@ export class ResultStates { const stateInfoReg: RegExp = /Property\s*'(\$?[_a-zA-Z0-9]+)' does not exist on type/; const importInfoReg: RegExp = /Cannot find namespace\s*'([_a-zA-Z0-9]+)'\./; if (this.matchMessage(message, props, propInfoReg) || - this.matchMessage(message, props, stateInfoReg) || - this.matchMessage(message, [...importModuleCollection], importInfoReg)) { + this.matchMessage(message, props, stateInfoReg)) { return false; } return true; } private matchMessage(message: string, nameArr: any, reg: RegExp): boolean { - importModuleCollection.forEach(item => { - if (message.includes(item)) { - return true; - } - }) if (reg.test(message)) { const match: string[] = message.match(reg); if (match[1] && nameArr.includes(match[1])) { diff --git a/compiler/src/validate_ui_syntax.ts b/compiler/src/validate_ui_syntax.ts index 882859c5f0cbc29211065eecae0c43a63725413a..6a326f3e7c7ed66a6048b8784e45e487d1acecd1 100644 --- a/compiler/src/validate_ui_syntax.ts +++ b/compiler/src/validate_ui_syntax.ts @@ -752,7 +752,7 @@ export function processSystemApi(content: string, isProcessWhiteList: boolean = if (!VALIDATE_MODULE.includes(systemValue)){ importModuleCollection.add(systemValue); } - if (!isProcessWhiteList && validateWhiteListModule(moduleType, systemKey)) { + if (!isProcessWhiteList) { return item; } else if (isProcessWhiteList) { systemValue = item2;