hexojs / hexojs/hexo-math

Error: Unable to call `JSON["stringify"]`, which is undefined or falsey

Open
#207 1 comment 0 reactions 0 assignees View on GitHub
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

![Screen Shot 2024-07-26 at 5 44 08 PM](https://github.com/user-attachments/assets/51e42fc4-923f-4273-893c-e0816ab322d4)

### 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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.