Skip to content

Vue.js #300

Open
Open

Description

@jamursch

Referencing the .css and .js files in the index.html page in a vue.js project keeps throwing this in the console window. Is there a preferred way to include outdatedbrowser in vue.js projects?

Refused to apply style from 'http://localhost:8080/NextGenUI/node_modules/outdatedbrowser/outdatedbrowser/outdatedbrowser.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Activity

  1. jamursch commented on Jul 17, 2018

    @jamursch
    Author

    Moved the files from within the "node_modules" directory into the "static" directory and everything seems to work fine, but I'll miss out on auto updates. Anyone know why this works under static but not node_modules?

  2. hypeJunction commented on Dec 14, 2018

    @hypeJunction

    I had no luck either. I think the module is not exported properly, so Vue doesn't recognize it as a node module.

  3. gokhantaskan commented on Mar 11, 2019

    @gokhantaskan

    It is all about using static when you want to use outdated-browser. Vue uses babel, old browsers may not use es6 features so Vue ( and other frameworks ) causes some problems.

    -- Use Static Files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions