Closed
Description
Version
15.0.0-beta.7
Reproduction link
https://github.com/JounQin/vue-ssr/blob/master/src/views/Articles/ArticleItem.vue#L24-L26
Steps to reproduce
<style >
@import '~highlight.js/styles/github-gist.css';
</style>
change it to:
<style src="highlight.js/styles/github-gist.css"></style>
run yarn dev
and visit http://localhost:4000/article/1 .
What is expected?
Do not throw error and work with SSR
What is actually happening?
It does not throw error on building, but when we visit the page like, it will throw an error Cannot find module 'highlight.js/styles/github-gist.css?vue&type=style&index=0&lang=css'
, but refresh the page, there will be no error any more. However, styles SSR for it is not working neither.
Metadata
Metadata
Assignees
Labels
No labels