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
This is the minimal example I could reproduce the error with. If you remove one of the CSS classes or replace the anchor tag with a div, the build will work.
System Info
requiredvite version: 0.15.3
required Operating System: macOS Catalina
required Node version: 13.7.0
Logs (Optional if provided reproduction)
$ vite build
vite v0.15.3
⠋ Building for production...
⠙ Building for production...
[vite] Build errored out.
ReferenceError: _imports_0 is not defined
at eval (eval at evaluateConstant (/Users/akaufmann/test-vite/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js:2894:16), <anonymous>:1:1)
at evaluateConstant (/Users/akaufmann/test-vite/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js:2894:53)
at stringifyElement (/Users/akaufmann/test-vite/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js:2837:29)
at stringifyNode (/Users/akaufmann/test-vite/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js:2869:20)
at stringifyElement (/Users/akaufmann/test-vite/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js:2853:16)
at stringifyNode (/Users/akaufmann/test-vite/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js:2869:20)
at stringifyElement (/Users/akaufmann/test-vite/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js:2853:16)
at Object.stringifyStatic [as transformHoist] (/Users/akaufmann/test-vite/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js:2750:28)
at walk (/Users/akaufmann/test-vite/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:1236:31)
at walk (/Users/akaufmann/test-vite/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:1266:13) {
code: 'PLUGIN_ERROR',
plugin: 'vue',
hook: 'transform',
id: '/Users/akaufmann/test-vite/src/pages/Home.vue?vue&type=template&id=2305b5da',
watchFiles: [
...
]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered:
Describe the bug
This layout (must be in a folder e.g.
/src/pages/Home.vue
) throws an error when you runvite build
:This is the minimal example I could reproduce the error with. If you remove one of the CSS classes or replace the anchor tag with a div, the build will work.
System Info
vite
version: 0.15.3Logs (Optional if provided reproduction)
The text was updated successfully, but these errors were encountered: