Comments (7)
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.
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.
The PHP Notice are very lines similars.
from shila-drupal-theme.
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.
Ok fixed. I used your suggest. Thanks for you work on this.
from shila-drupal-theme.
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.
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)
- JSON data is not reflecting on page load HOT 1
- View Pattern Info button is not working for all atoms, molecules and organisms HOT 1
- Not a valid pattern HOT 2
- PHP Notice: Array to string conversion, includes not working HOT 2
- Install script fails at 'php core/console --generate' HOT 2
- Tons of "DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal in Sass 4.0" HOT 2
- Composer install fails when trying to install starter kit HOT 4
- php core/console --generate _data directory error HOT 3
- Use of data transfer to /templates and Data Transform plugin HOT 2
- 403 Forbidden on Pattern Info HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shila-drupal-theme.