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

    alitak

    09/12/2022, 7:17 AM
    i will try downgrade node version to 16
  • h

    Harings Rob

    09/12/2022, 7:21 AM
    I personally am on npm 8.18, node 18.8 (I run these commands daily).
  • a

    alitak

    09/12/2022, 7:22 AM
    hmm, then maybe i should upgrade
  • a

    alitak

    09/12/2022, 7:22 AM
    i will try it also
  • a

    alitak

    09/12/2022, 8:27 AM
    ok, i tries with v16, but i had a lot of troubles, so i skipped it
  • a

    alitak

    09/12/2022, 8:27 AM
    i build a new container with v18, but i still have problems
  • a

    alitak

    09/12/2022, 8:27 AM
    i removed the node_modules and the package-lock.json and i run the twill:dev command
  • a

    alitak

    09/12/2022, 8:28 AM
    it installed npm packages with a lot of deprecation warnings (with the division out of the calc() call) and in the end i got this error:
  • a

    alitak

    09/12/2022, 8:28 AM
    ERROR Failed to compile with 24 errors These dependencies were not found: * prosemirror-state in ./node_modules/prosemirror-collab/dist/index.js, ./node_modules/prosemirror-commands/dist/index.js and 11 others * prosemirror-transform in ./node_modules/prosemirror-commands/dist/index.js, ./node_modules/prosemirror-dropcursor/dist/index.js and 5 others * prosemirror-view in ./node_modules/prosemirror-gapcursor/dist/index.js, ./node_modules/prosemirror-tables/src/cellselection.js and 2 others To install them, you can run: npm install --save prosemirror-state prosemirror-transform prosemirror-view
  • a

    alitak

    09/12/2022, 8:29 AM
    i tries to install these packages but it seems they are already installed
  • i

    ifox

    09/12/2022, 8:32 AM
    @alitak you should not delete the package-lock.json otherwise you're not using the version of dependencies we know are working at the moment
  • a

    alitak

    09/12/2022, 8:34 AM
    oh, ok, i restore it
  • a

    alitak

    09/12/2022, 8:46 AM
    ok, i think i ruined something
  • a

    alitak

    09/12/2022, 8:47 AM
    i got this error with twill:dev
  • a

    alitak

    09/12/2022, 8:47 AM
    npm ERR! While resolving: @area17/twill@3.0.0-alpha1
  • a

    alitak

    09/12/2022, 8:47 AM
    i think i will try to rebuild the system from scratch
  • h

    Harings Rob

    09/12/2022, 8:50 AM
    You should be able to remove vendor/area17/twill and then run
    composer install
    to get everything back in place
  • a

    alitak

    09/12/2022, 10:23 AM
    i rebuild my system from scratch
  • a

    alitak

    09/12/2022, 10:24 AM
    the dev mode seems to be live, but now the system misses the manifest file
  • a

    alitak

    09/12/2022, 10:24 AM
    Twill dev assets manifest is missing. Make sure you are running the npm run serve command inside Twill. (View: /var/www/vendor/area17/twill/views/layouts/free.blade.php) (View: /var/www/vendor/area17/twill/views/layouts/free.blade.php)
  • z

    zynth

    09/12/2022, 11:17 AM
    Hi, I'm trying to render an image from a blocks medias component. Doing
    <img src="{{ $block->image('paragraph-image', 'default') }}">
    renders nothing though. The crop option
    default
    is set in
    config/twill.php
    . The medias components name is
    paragraph-image
    . Am I missing something obvious? 😄
  • z

    zynth

    09/12/2022, 11:18 AM
    I'm on the newest 3.x branch btw.
  • a

    alitak

    09/12/2022, 12:37 PM
    i have no luck with the development part, my components are copied to the proper folder in the vendor, but this manifest file is missing and i cannot figure out what i missed
  • h

    Harings Rob

    09/12/2022, 2:33 PM
    @alitak which command are you using to build twill? If you are running twill:dev you also have to set your env
  • h

    Harings Rob

    09/12/2022, 2:45 PM
    @zynth could be related to https://github.com/area17/twill/pull/1797
  • z

    zynth

    09/12/2022, 2:51 PM
    That sounds exactly like my problem haha
  • z

    zynth

    09/12/2022, 2:52 PM
    Is it only in blocks preview?
  • h

    Harings Rob

    09/12/2022, 2:53 PM
    I believe so yes
  • h

    Harings Rob

    09/12/2022, 2:55 PM
    @alitak something like this:
    Copy code
    TWILL_DEV_MODE=true
    TWILL_DEV_MODE_URL=http://localhost:8080
  • z

    zynth

    09/12/2022, 3:38 PM
    Is that PR gonna be merged soon?
1...388389390...484Latest