antvis / gatsby-theme-antv

⚛️ Polished Gatsby theme for documentation site
https://gatsby-starter-theme-antv.antv.vision/zh
Other
344 stars 57 forks source link

gatsby-theme-antv 包构建报错 #370

Open 2012shenghua opened 2 years ago

2012shenghua commented 2 years ago

以下是报错信息:

RROR #10126 CONFIG

/Users/hua/pdd/project/sky-graphs/components/gatsby-theme-antv/@afe/gatsby-theme-graphs/gatsby-config cannot export a function.

A gatsby-config exported as a Function can only be used as a theme and not run directly. If you are trying to run a theme directly, use the theme in an example site or starter instead and run that site to test. If you are in the root gatsby-config.js for your site, change the export to be an object and not a function as functions are not supported in the root gatsby-config.

2012shenghua commented 2 years ago

大概是进入到@antv/gatsby-theme-antv 然后进行npm run build 的