diff --git a/packages/taro-transformer-wx/src/create-html-element.ts b/packages/taro-transformer-wx/src/create-html-element.ts index b772f4621234..4d42522ac4ca 100644 --- a/packages/taro-transformer-wx/src/create-html-element.ts +++ b/packages/taro-transformer-wx/src/create-html-element.ts @@ -89,6 +89,9 @@ export const createHTMLElement = (options: Options, isFirstEmit = false) => { } } } + if (name === 'view') { + options.name = 'div' + } } const isVoidTag = voidHtmlTags.has(options.name)