You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From within any /assets/ directory for a Larva install, run npm install and npm run larva.
Open localhost:3000
Navigate to any module, component, or object in the navigation.
Twing 5.1.1 will throw the following error,
Cannot render template!
TwingErrorRuntime: An exception has been thrown during the rendering of a template ("Cannot read property 'toString' of undefined") in "/Users/[name]/vvv-local/www/[project]/public_html/wp-content/themes/[themeName]/assets/node_modules/@penskemediacorp/larva-patterns/base.html" at line 51.
Run npm install [email protected] and run through the remaining steps again to confirm the regression.
Summary
Twing, the JavaScript library used to parse Twig templates in the @penskemediacorp/twig-to-php-parser package was recently updated with a
5.1.1
version.Steps to Reproduce
/assets/
directory for a Larva install, runnpm install
andnpm run larva
.localhost:3000
5.1.1
will throw the following error,npm install [email protected]
and run through the remaining steps again to confirm the regression.Docs
Here's an issue filed in the Twing repo in Gitlab, https://gitlab.com/nightlycommit/twing/-/issues/521.
The text was updated successfully, but these errors were encountered: