Anand Sukumaran Nair
Startup Founder, Software Engineer, Abstract thinker | Building Engagespot
Fix - No grammar provided for text.html.markdown.jsx in Netlify astro buildMay 14, 2023
Recently, I got this error while trying to deploy an astro website to Netlify.
The error happens during
astro build, and at the
generating static routes step.
3:28:03 PM: generating static routes 3:28:03 PM: ▶ src/pages/index.astro 3:28:04 PM: error No grammar provided for <text.html.markdown.jsx> 3:28:04 PM: File: 3:28:04 PM: /firstname.lastname@example.org/node_modules/vscode-textmate/release/main.js:1:3170
Spent a lot of time trying to fix it. Finally, came to know that it happened due to NODE Version!
The solution was to specify the environment variable
NODE_VERSION with value
20.1.0 in Netlify environment variable settings!
And that solved the issue!