Error: Unable to call `JSON["stringify"]`, which is undefined or falsey
- Dominant language
- JavaScript
- Stars
- 327
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
### Check List
- [X] I have already read README.
- [X] I have already searched existing issues and they are not help to me.
- [X] I examined error or warning messages and it's difficult to solve.
- [X] I am using the latest version of this repository.
- [X] I am using the [latest](https://github.com/hexojs/hexo/releases) version of Hexo.
- [X] My Node.js is matched the required version.
### Describe the bug
When I run hexo -v, it return me this error
```
Unhandled rejection Template render error: (/swjblog/node_modules/hexo-math/asset/inject.swig) [Line 2, Column 38]
Error: Unable to call `JSON["stringify"]`, which is undefined or falsey ... ```
```
### Expected behavior
Should not have error
### How to reproduce
my environment version
hexo: 7.3.0
hexo-cli: 4.3.2
I just install by npm i hexo-math
### Screenshots

### Environment information
_No response_
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.