Skip to content
Rob Loach edited this page Oct 31, 2023 · 31 revisions

Troubleshooting

The following are a few ways you can troubleshoot your Kalastatic installation...

Node.js Version

Kalastatic targets the (Long Term Support release of Node.js](https://nodejs.org/en/about/previous-releases). As of writing, that's Node.js 18, but that doesn't mean it will not work on previous versions of Node.js.

In order to see which version of Node.js you're using, run...

node --version
npm --version

Kalastatic Version

Check which version of Kalastatic you're using, and target a version represented on https://www.npmjs.com/package/kalastatic .

{
  "name": "kalastatic-examples-simple",
  "version": "0.0.1",
  "description": "A test case for the new version of Kalastatic.",
  "private": true,
  "scripts": {
    "build": "kalastatic"
  },
  "kalastatic": {
    "source": "pages",
    "destination": "build"
  },
  "dependencies": {
    "kalastatic": "^6.0@alpha"
  }
}

Twig Debugging

The following is a simple example of debugging Twig templates. It could live at pages/index.html.twig...

{% set text = 'Hello World!' %}

<html>
<head>
<title>Kalastatic: Simple Test</title>
</head>
<body>
<h1>{{ text }}</h1>

<code>
{{ dump(text) }}
</code>

</body>
</html>
Clone this wiki locally