Git Product home page Git Product logo

Comments (2)

danielpclark avatar danielpclark commented on August 15, 2024

Trying again it seems I was mistaken. Vue isn't even loaded when I click edit. I use the Vue chrome tool and try and click on <Root> and get the following.

Uncaught TypeError: Cannot read property '__VUE_DEVTOOLS_UID__' of undefined
    at backend.js:1
    at t.a.v.on.e (backend.js:1)
    at t.a.n.emit (backend.js:1)
    at e.listen.e (backend.js:1)
    at n (backend.js:1)

This is without using a Mixin.

from vue-turbolinks.

danielpclark avatar danielpclark commented on August 15, 2024

Okay I fixed it. I was putting the javascript pack tag in the page and had this issue. Putting the following in my application template header fixed all my problems.

<%= javascript_pack_tag "repositories" if
  controller_name == "repositories" &&
  (action_name == "edit" || action_name == "new")
%> 

I really don't want to fill up my header with all this logic for per page JS packs. I'll have to think of something to refactor it to it.

I'm not using it as a Mixin.

from vue-turbolinks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.