The Be Sure Blog

Code Snippets | Problem Solving | Tips & Tricks

The Be Sure Blog banner

How I fixed "Parsing error: DeprecationError"

posted on 25.8.2023 by Below Surface in "Next.js"

When running:

npm run build

in my Next.js v13.4.19 app, I got this error for a couple of .tsx components:

Error: Parsing error: DeprecationError: 'originalKeywordKind' has been deprecated since v5.0.0 and can no longer be used. Use 'identifierToKeywordKind(identifier)' instead.

Google and ChatGPT did not help in any way, so I decided to delete these file and folders:

Then I ran:

npm install

And finally I could build my application again!


parsing error
deprecation error
bug fix

More posts of this category

Do a static export of a Next.js website

Doing a static export in Next.js is easy and working great on basic web hosting services


Change the port of a Next.js app

How to manually set the port from 3000 to any other number


Next.js 13 - how to set dynamic HTML head titles

How to take a slug string and turn it into a HTML title tag


Suppress Next.js img tag warnings

If you don't want to use their Image elements, this is how to disable the warnings


Add a robots.txt to your Next.js website

How to add your robots.txt file


Add Tailwind CSS to your Next.js app

A few commands and some possible error fixing and you are good to go!


Next.js 13 Tailwind CSS hot-reload issue fix

With the currently experimental app directory, hot-reload does not work properly


How to clear the cache of a Next.js application

How to create a fresh build without any cached data


How i finally fixed "sh: 1: next: not found"

My release pipeline failed constantly and it took me three hours to figure out the issue