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

    delta107

    09/10/2022, 12:46 PM
    Is this a problem on my side, something went wrong when twill created the related tables for example?
  • i

    ifox

    09/10/2022, 4:05 PM
    Interesting @delta107 thanks for reporting.
  • i

    ifox

    09/10/2022, 4:09 PM
    the related table doesn't have a primary key indeed
  • i

    ifox

    09/10/2022, 4:16 PM
    it does have a unique constraint though
  • i

    ifox

    09/10/2022, 4:17 PM
    https://github.com/area17/twill/blob/6203a8a1198a0b36623203c8c48fa54b3494a414/migrations/default/2020_02_09_000010_create_twill_default_related_table.php#L27
  • d

    delta107

    09/11/2022, 10:07 AM
    twill_password_resets also lacks a primary key, as I said it's just part of my investigation why I am getting incompatibilities in my MySQL replication Kubernetes cluster
  • d

    delta107

    09/11/2022, 10:08 AM
    which could be relevant if Twill will get more exposure and someone will try to install the tables on something similar on such a MySQL replication system
  • d

    delta107

    09/11/2022, 10:12 AM
    perhaps it's not a problem in general, I am just reporting it as it is
  • h

    Harings Rob

    09/12/2022, 6:28 AM
    Hey @delta107, feel free to create an issue with your findings. This should be a simple migration that we can add to add the primary keys.
  • h

    Harings Rob

    09/12/2022, 6:30 AM
    I also found this article that: https://dev.mysql.com/blog-archive/enforce-primary-key-constraints-on-replication/ , it seems to be configurable.
  • h

    Harings Rob

    09/12/2022, 6:31 AM
    I personally have no knowledge about replicating and the performance effect of it. Nor do I think we can (in a simple way) add test coverage for this.
  • h

    Harings Rob

    09/12/2022, 6:31 AM
    But if it helps, we can have the primary keys for sure, there should be no harm in that.
  • a

    alitak

    09/12/2022, 6:49 AM
    Hi, I have some problems with createing a custom page based on Vuejs. Can anybody help me? I am working with version 3.0.0-alpha, because the projekt will be live next year Q1. I hope alpha will be prod until 🙂 I started with this workflow: https://twill.io/docs/guides/creating_custom_components_form_fields_and_blocks.html I run twill:dev, it installed npm dependecies. The problem is with running development server. I got this error: INFO Starting development server... /var/www/vendor/area17/twill/node_modules/@vue/cli-service/node_modules/webpack/lib/RuleSet.js:167 throw new Error( ^ Error: Rule can only have one resource source (provided resource and test + include + exclude) in { "exclude": [ null ], "use": [ { "loader": "/var/www/vendor/area17/twill/node_modules/babel-loader/lib/index.js", "options": { "cacheCompression": false, "cacheDirectory": "/var/www/vendor/area17/twill/node_modules/.cache/babel-loader", "cacheIdentifier": "07f8d73c" }, "ident": "clonedRuleSet-39.use[0]" } ] }
  • a

    alitak

    09/12/2022, 6:57 AM
    My goal is to create a custom page for the edit action with a vuejs component
  • a

    alitak

    09/12/2022, 6:58 AM
    meanwhile i created an edit method within the controller, and a view for it. The question is at the moment, how can i build the js files with the custom component
  • h

    Harings Rob

    09/12/2022, 7:00 AM
    Hey @alitak you should run
    php artisan twill:build
    or
    php artisan twill:dev
  • h

    Harings Rob

    09/12/2022, 7:00 AM
    The error however, seems unrelated to anything Twill specific. Can you share your node/npm version?
  • a

    alitak

    09/12/2022, 7:01 AM
    node v17.9.0 npm 8.5.5
  • a

    alitak

    09/12/2022, 7:02 AM
    as i remember the build caused other errors too, i started it again, it is running
  • a

    alitak

    09/12/2022, 7:04 AM
    the twill:build command caused the same error as the twill:dev
  • h

    Harings Rob

    09/12/2022, 7:06 AM
    Which is the one you reported above?
  • a

    alitak

    09/12/2022, 7:07 AM
    yes
  • h

    Harings Rob

    09/12/2022, 7:09 AM
    https://stackoverflow.com/questions/64373393/error-rule-can-only-have-one-resource-source-provided-resource-and-test-incl Can you try to: Remove node_modules in twill, then restart the process?
  • a

    alitak

    09/12/2022, 7:10 AM
    within the twill directory?
  • h

    Harings Rob

    09/12/2022, 7:12 AM
    yes, I believe it should be there
  • h

    Harings Rob

    09/12/2022, 7:12 AM
    vendor/area17/twill/node_modules
  • a

    alitak

    09/12/2022, 7:12 AM
    webpack was changed, i am running the twill:dev command
  • a

    alitak

    09/12/2022, 7:16 AM
    ok, i got different error
  • a

    alitak

    09/12/2022, 7:16 AM
    some progress here 😄
  • a

    alitak

    09/12/2022, 7:16 AM
    INFO Starting development server... 11% building 10/17 modules 7 active /var/www/vendor/area17/twill/node_modules/webpack/hot/dev-server.jsnode:internal/crypto/hash:67 this[kHandle] = new _Hash(algorithm, xofLen); ^ Error: error:0308010C:digital envelope routines::unsupported
1...387388389...484Latest