Giter VIP home page Giter VIP logo

Comments (7)

aleksip avatar aleksip commented on July 27, 2024

Interesting. Could you post the full stack trace in the notice? Does this happen with an unmodified Shila theme? Could not replicate it myself.

Edit: a stack trace for one notice would be enough.

from shila-drupal-theme.

edysmp avatar edysmp commented on July 27, 2024
 php core/console --server --with-watch
]configuring pattern lab...
server started on http://localhost:8080 - use ctrl+c to exit...
configuring pattern lab...
your site has been generated...
site generation took 0.56538510322571 seconds and used 10MB of memory...
watching your site for changes...
PHP Notice:  Array to string conversion in /Users/edysmp/Sites/drupal8/web/themes/custom/shila-drupal-theme/pattern-lab/vendor/twig/twig/lib/Twig/Environment.php(467) : eval()'d code on line 26

And yes is a unmodified Shila theme
For reproduce I modify the 01-molecules/text/shila-page-title/shila-page-title.html.twig pattern adding any html stuff like, <h2>foo</h2> before a watch.

from shila-drupal-theme.

edysmp avatar edysmp commented on July 27, 2024

The PHP Notice are very lines similars.

from shila-drupal-theme.

aleksip avatar aleksip commented on July 27, 2024

It looks like this could be a bug in either Data Transform Plugin or Pattern Lab Core. I have not used --server --with-watch myself so I have not come up with the bug before. I will have to investigate a bit more to find the cause.

Meanwhile I suggest using Gulp and Browsersync for serving and watching files. I have updated the gulpfile.js so that Browsersync serves the files by default. All you need to do is run gulp in the theme directory. You will have to use the latest dev version of Shila theme and have to run npm install first if you have not already done so.

from shila-drupal-theme.

edysmp avatar edysmp commented on July 27, 2024

Ok fixed. I used your suggest. Thanks for you work on this.

from shila-drupal-theme.

aleksip avatar aleksip commented on July 27, 2024

Good to know that using Gulp worked for you. I will keep this issue open until I figure out where the bug with --server --with-watch is.

from shila-drupal-theme.

aleksip avatar aleksip commented on July 27, 2024

Closing as the theme and setup have now significantly changed and this is most likely a Pattern Lab PHP Core bug.

from shila-drupal-theme.

Related Issues (11)

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.