Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue template src is not working in vite build&serve #5324

Closed
7 tasks done
lzdyes opened this issue Oct 17, 2021 · 0 comments · Fixed by #5418
Closed
7 tasks done

Vue template src is not working in vite build&serve #5324

lzdyes opened this issue Oct 17, 2021 · 0 comments · Fixed by #5418

Comments

@lzdyes
Copy link

lzdyes commented Oct 17, 2021

Describe the bug

eidt sample project

<template src="./app.html"></template>
// app.html
<img alt="Vue logo" src="./assets/logo.png" />
<HelloWorld msg="Hello Vue 3 + TypeScript + Vite" />

is working in vite dev, if run bulid and serve, it's a blank page.

Reproduction

yarn create vite use vue-ts

System Info

System:
    OS: Windows 10 10.0.19042
    CPU: (8) x64 Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz   
    Memory: 21.86 GB / 31.93 GB
  Binaries:
    Node: 14.17.5 - C:\Program Files\nodejs\node.EXE       
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.14 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1023.0), Chromium (94.0.992.38)
    Internet Explorer: 11.0.19041.1202
  npmPackages:
    @vitejs/plugin-vue: ^1.9.3 => 1.9.3 
    vite: ^2.6.4 => 2.6.7

Used Package Manager

yarn

Logs

No response

Validations

@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants