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

    onepiece

    09/01/2022, 12:46 PM
    How did i rebuild me twill assets?
  • i

    ifox

    09/01/2022, 12:47 PM
    php artisan twill:build
  • o

    onepiece

    09/01/2022, 12:51 PM
    When i try php artisan twill:build i have error
  • i

    ifox

    09/01/2022, 12:56 PM
    what's your node/npm versions?
  • o

    onepiece

    09/01/2022, 12:57 PM
    npm 8.11.0
  • o

    onepiece

    09/01/2022, 12:57 PM
    node v14.17.3
  • i

    ifox

    09/01/2022, 12:58 PM
    not necessarily your issue but you should upgrade to node LTS which is 16.17 at the moment
  • o

    onepiece

    09/01/2022, 1:06 PM
    I still have the error
  • h

    Harings Rob

    09/01/2022, 1:10 PM
    it's hard to figure this out. The error states that it cannot cd into the @babel folder. Does that folder exist?
  • o

    onepiece

    09/01/2022, 1:13 PM
    now I fixed twill:build. But it's still the same problem. The vue component doesn't appear
  • h

    Harings Rob

    09/01/2022, 1:15 PM
    Have you tried to use
    <a17-app-leads></a17-app-leads>
  • o

    onepiece

    09/01/2022, 1:17 PM
    yep
  • o

    onepiece

    09/01/2022, 1:17 PM
    does not work
  • h

    Harings Rob

    09/01/2022, 1:25 PM
    Can you make a repository with the minimal code to reproduce the issue so that I can run in on my system. Cannot give more advice.
  • s

    Sami

    09/01/2022, 4:25 PM
    No clues about this issue, right? 😐
  • h

    Harings Rob

    09/01/2022, 4:33 PM
    Was busy with other things today. Will give it a go tomorrow. Can you share the full crop config as plain array so that I can reproduce?
  • s

    Sami

    09/01/2022, 5:51 PM
    these are all the relevant crops to Block editor I believe
    Copy code
    php
    const BLOCK_EDITOR = [
        'text_image' => self::ORIGINAL,
        'gallery' => self::LANDSCAPE,
    ];
    
    const ORIGINAL = [
        'original' => [
            [
                'name' => 'original',
                'ratio' => null,
            ],
        ],
    ];
    
    const LANDSCAPE = [
        'landscape' => [
            [
                'name' => 'landscape',
                'ratio' => 16 / 9,
            ],
        ],
    ];
  • i

    ifox

    09/01/2022, 10:02 PM
    @Sami to make sure I understood: the same code works outside of the block editor preview iframes?
  • h

    Harings Rob

    09/02/2022, 7:12 AM
    Very interesting query it is doing:
    Copy code
    select * from `medias` inner join `mediables` on `medias`.`id` = `mediables`.`media_id` where `mediables`.`mediable_id` is null and `mediables`.`mediable_type` = 'blocks' and `medias`.`deleted_at` is null order by `mediables`.`id` asc
    When calling $model->medias Notice this: `where
    mediables
    .
    mediable_id
    is null`
  • h

    Harings Rob

    09/02/2022, 7:15 AM
    oh it's because $this->id is null.
  • h

    Harings Rob

    09/02/2022, 7:24 AM
    Got it 🙂
  • g

    Gvido Blue Fox

    09/02/2022, 7:49 AM
    Bug? https://skr.sh/vFjCWJV7Q66?a
  • i

    ifox

    09/02/2022, 7:49 AM
    https://discord.com/channels/811936425858695198/811986440569356308/1014896765004152863
  • o

    onepiece

    09/02/2022, 7:51 AM
    Hello I am creating a custom vuejs component like the example at https://twill.io/docs/guides/creating_custom_components_form_fields_and_blocks.html#part-1-setup-twill-for-development, but when I cut it to the blade it doesn't appear. Meanwhile, when I inspect, it only appears as a tag.
  • i

    ifox

    09/02/2022, 7:53 AM
    that means your browser is not loading a js build that includes those components
  • o

    onepiece

    09/02/2022, 7:55 AM
    any solution?
  • i

    ifox

    09/02/2022, 7:56 AM
    check that the build that twill:build produced is what your browser is loading
  • h

    Harings Rob

    09/02/2022, 7:57 AM
    also make sure you are on the latest 2.x version.
  • o

    onepiece

    09/02/2022, 8:00 AM
    My twill Versione 2.8.8
  • i

    ifox

    09/02/2022, 8:04 AM
    in public/assets/admin there is a manifest.json file. Are the js files referenced in that file the same as what your browser is loading on your Twill custom page?
1...382383384...484Latest