[warning] an anonymous plugin or theme was detected and ignored #878
-
Hi~ I'm upgrading from $ node -v
v17.4.0
$ npm -v
8.5.0
$ npm run docs:dev
> polardb_pg_documentation@0.0.1 docs:dev
> vuepress dev docs
warning an anonymous plugin or theme was detected and ignored
warning an anonymous plugin or theme was detected and ignored
info Initializing VuePress and preparing data...
vite v2.9.8 dev server running at:
> Local: http://localhost:8080/PolarDB-for-PostgreSQL/
> Network: http://30.225.184.37:8080/PolarDB-for-PostgreSQL/
下午3:47:08 [vite] ✨ optimized dependencies changed. reloading And my web page cannot display as expected, the content on navbar has gone, and the logo on the navbar disappears, either. The theme goes dark even if I have turned off the dark mode. The browser console does not show any error or warnings. Have I mis-config anything? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Check whether all your theme and plugins are using a See https://v2.vuepress.vuejs.org/reference/plugin-api.html#name |
Beta Was this translation helpful? Give feedback.
-
I had encountered the same issue with a local plugin. For other people debugging this issue, those two changes were required:
Before: plugins: [
[
require("./plugins/rss"),
options
],
] After: const rssPlugin = require("./plugins/rss");
...
plugins: [
rssPlugin(options),
],
Before: module.exports = (pluginOptions, ctx) => {
onGenerated() {
const pages = ctx.pages;
... After: module.exports = (pluginOptions) => {
onGenerated(app) {
const pages = app.pages;
... See this commit for everything I had to do to migrate from |
Beta Was this translation helpful? Give feedback.
-
how fix it ? |
Beta Was this translation helpful? Give feedback.
-
the option
|
Beta Was this translation helpful? Give feedback.
Check whether all your theme and plugins are using a
name
option and set them as package name. If not, submit an issue in their repo.See https://v2.vuepress.vuejs.org/reference/plugin-api.html#name