https://twill.io logo
Join Discord
Powered by
# ❓questions
  • k

    Kirk Bushell

    07/14/2021, 2:15 PM
    I've got a weird problem
  • k

    Kirk Bushell

    07/14/2021, 2:15 PM
    after a deploy, my repeater blocks aren't showing up
  • k

    Kirk Bushell

    07/14/2021, 2:15 PM
    like I go to add one, the block is just empty
  • k

    Kirk Bushell

    07/14/2021, 2:15 PM
    but locally its' fine
  • v

    void

    07/14/2021, 2:15 PM
    do a php artisan twill:update
  • p

    pboivin

    07/14/2021, 2:15 PM
    Hey @User, are you already comfortable with creating custom Vue components in the context of Twill?
  • v

    void

    07/14/2021, 2:16 PM
    Not in the context of twill thats why I am asking, I already know vue and I've used twill blocks + repeaters
  • k

    Kirk Bushell

    07/14/2021, 2:17 PM
    thanks, unfortunately still nothing
  • v

    void

    07/14/2021, 2:17 PM
    checking this as we speak https://twill.io/docs/#development-workflow @User but any guidance will help
  • p

    pboivin

    07/14/2021, 2:18 PM
    Cool, ok. My suggestion would be to get going first with a simple Vue component (not a form field). Once you've added that to your form and it renders correctly, you can look into the current
    DatePicker.vue
    and
    _date_picker.blade.php
    to get a sense of what's missing to connect your component to the Vuex store.
  • v

    void

    07/14/2021, 2:18 PM
    thanks
  • k

    Kirk Bushell

    07/14/2021, 2:21 PM
    I don't understand this, I've changed nothing on that form
  • v

    void

    07/14/2021, 2:22 PM
    I had this happen only because of vue compilation issues which got solved by either twill:update or twill:build
  • k

    Kirk Bushell

    07/14/2021, 2:22 PM
    I'll try build
  • k

    Kirk Bushell

    07/14/2021, 2:25 PM
    Still nothing. This is fucking weird.
  • p

    pboivin

    07/14/2021, 2:25 PM
    The docs are a bit focused on custom blocks but the general idea applies to custom Vue components. To give you an overview : 1. create
    resources/assets/js/components/MyComponent.vue
    2. run
    php artisan twill:build
    3. Add
    <a17-my-component />
    to your
    form.blade.php
  • v

    void

    07/14/2021, 2:26 PM
    Thanks!
  • v

    void

    07/14/2021, 2:26 PM
    Once I get something working I may show you a calendar or datepicker component in case you guys care to include it
  • k

    Kirk Bushell

    07/14/2021, 2:28 PM
    I don't understand why it's not busted locally
  • p

    pboivin

    07/14/2021, 2:30 PM
    Hey @User , yeah I've run into empty repeaters recently. This was a
    twill:update
    thing on my end. Curious to know what is your workflow with twill assets in you deployment. Are you comitting the assets in your repository?
  • k

    Kirk Bushell

    07/14/2021, 2:30 PM
    I never have until now
  • k

    Kirk Bushell

    07/14/2021, 2:31 PM
    Im doing a build on the server to see if it helps
  • p

    pboivin

    07/14/2021, 2:31 PM
    This might be it!
  • k

    Kirk Bushell

    07/14/2021, 2:31 PM
    Easy fix if so
  • k

    Kirk Bushell

    07/14/2021, 2:31 PM
    It's a slow process, though. Would update suffice?
  • v

    void

    07/14/2021, 2:31 PM
    yes
  • p

    pboivin

    07/14/2021, 2:32 PM
    Yes, update will refresh the assets. Build will... build, but also run npm install which can take some time.
  • v

    void

    07/14/2021, 2:33 PM
    "because it would have updated the assets from twill distributed ones, and you wouldn't have had to run the build. yeah all good!" as ifox mentioned a few days ago
  • k

    Kirk Bushell

    07/14/2021, 2:33 PM
    that did it 🙂
  • k

    Kirk Bushell

    07/14/2021, 2:33 PM
    adding to my deploy script
1...626364...484Latest