Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行报错Unexpected end of JSON input #247

Open
DaiShengloda opened this issue Sep 6, 2021 · 1 comment
Open

运行报错Unexpected end of JSON input #247

DaiShengloda opened this issue Sep 6, 2021 · 1 comment

Comments

@DaiShengloda
Copy link

bisheng.config.js

module.exports = {
  source: './posts',
  output: './_site',
  theme: 'bisheng-theme-one',
  port: 8002,
};

package.json包版本如下:

"bisheng": "^3.1.0-beta.4",
"bisheng-theme-one": "^0.2.37",

运行bisheng start就会报变异错误,如下:
image

@chocking
Copy link

chocking commented Oct 18, 2021

@DaiShengloda

我把webpack的mode设置成'development', 能看到是这行代码报错

const themeConfig = JSON.parse('{{ themeConfig | safe }}');

最后在config.js配置个themeConfig空对象就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants