You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure what changed in 1.2.7 but now when building I'm getting error:
Error: Cannot be closed: body
at ParseHTML.onCloseTagEndEvent (/Users/i868610/emarsys/campaign-blocks-client/node_modules/vite-plugin-html-env/lib/parse/index.js:313:15)
at ParseHTML.parse (/Users/i868610/emarsys/campaign-blocks-client/node_modules/vite-plugin-html-env/lib/parse/index.js:189:16)
at transform (/Users/i868610/emarsys/campaign-blocks-client/node_modules/vite-plugin-html-env/lib/index.js:141:19)
at applyHtmlTransforms (file:///Users/i868610/emarsys/campaign-blocks-client/node_modules/vite/dist/node/chunks/dep-c842e491.js:44265:27)
at Object.generateBundle (file:///Users/i868610/emarsys/campaign-blocks-client/node_modules/vite/dist/node/chunks/dep-c842e491.js:44185:32)
at file:///Users/i868610/emarsys/campaign-blocks-client/node_modules/rollup/dist/es/shared/rollup.js:22748:40
If I remove the closing body tag than I get an error for the closing html tag:
Error: Cannot be closed: html
at ParseHTML.onCloseTagEndEvent (/Users/i868610/emarsys/campaign-blocks-client/node_modules/vite-plugin-html-env/lib/parse/index.js:313:15)
at ParseHTML.parse (/Users/i868610/emarsys/campaign-blocks-client/node_modules/vite-plugin-html-env/lib/parse/index.js:189:16)
at transform (/Users/i868610/emarsys/campaign-blocks-client/node_modules/vite-plugin-html-env/lib/index.js:141:19)
at applyHtmlTransforms (file:///Users/i868610/emarsys/campaign-blocks-client/node_modules/vite/dist/node/chunks/dep-c842e491.js:44265:27)
at Object.generateBundle (file:///Users/i868610/emarsys/campaign-blocks-client/node_modules/vite/dist/node/chunks/dep-c842e491.js:44185:32)
at file:///Users/i868610/emarsys/campaign-blocks-client/node_modules/rollup/dist/es/shared/rollup.js:22748:40
Not sure if this is meant to be but version 1.2.6 doesn't cause this error.
Thanks,
The text was updated successfully, but these errors were encountered:
I have the same error but it's a div. Internal server error: Cannot be closed: div. By the process of elimination, it seems to be caused by an HTML comment inside a div.
<div><!-- Remove this comment and the error goes away --></div>
If I move the comment up to be a direct child of the body I get Cannot be closed: body like you do.
I wonder if the issue is something todo with detecting < characters?
Not sure what changed in 1.2.7 but now when building I'm getting error:
If I remove the closing body tag than I get an error for the closing html tag:
Not sure if this is meant to be but version 1.2.6 doesn't cause this error.
Thanks,
The text was updated successfully, but these errors were encountered: