[Vuejs]-Testing vue component with v-dialog using vitest throws TypeError: globalStack.at is not a function

0👍

The "TypeError: globalStack.at is not a function" error triggered when running Vitest unit test can come from an outdated Node version.

According to the Node.js changelog, the .at method has been added post-2021 from version 16.6.

Upgrading Node.js to any version after 16.6 should fix this issue.

Related answer here.

Leave a comment