Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[next] <style src=""></style> issue on first render #1219

Copy link
Copy link
Closed
@JounQin

Description

@JounQin
Issue body actions

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.