Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

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

Open
2012shenghua opened this issue Dec 30, 2021 · 1 comment
Open

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

2012shenghua opened this issue Dec 30, 2021 · 1 comment

Comments

@2012shenghua
Copy link

以下是报错信息:

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
Copy link
Author

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

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

No branches or pull requests

1 participant