Skip to content

[Bug Report]: Farm does not support unplugin-vue-inspector #2157

@17359898647

Description

@17359898647

Steps to reproduce

  1. Install unplugin-vue-inspector in a Farm project: pnpm add unplugin-vue-inspector -D
    2.Import and use it in farm.config.ts as recommended:
    import Inspector from 'unplugin-vue-inspector/vite'
    ...
    vitePlugins: [
    ...,
    Inspector(),
    ]
    3.Start the dev server

Reproduce link

No response

What is actually happening?

[ Farm ] Error: Failed to start the server
[ building ] ⠂ file:///Users/gedatou/IdeaProjects/%E7%A7%81%E6%9C%89/farm-demo/node_modules/.pnpm/@farmfe+core@1.7.4/node_modules/@farmfe/core/dist/plugin/js/utils.js:174
throw new Error(Vite plugin '${pluginName}' is not compatible with Farm for now. Because it uses ${readingObject}['${String(key)}'] which is not supported by Farm. Current supported keys are: ${allowedKeys.join(',')});
^

Error: Vite plugin 'vite-plugin-vue-inspector' is not compatible with Farm for now. Because it uses viteDevServer['printUrls'] which is not supported by Farm. Current supported keys are: moduleGraph,config,watcher,middlewares,middlewareCallbacks,ws,httpServer
at throwIncompatibleError (file:///Users/gedatou/IdeaProjects/%E7%A7%81%E6%9C%89/farm-demo/node_modules/.pnpm/@farmfe+core@1.7.4/node_modules/@farmfe/core/dist/plugin/js/utils.js:174:11)
at Object.get (file:///Users/gedatou/IdeaProjects/%E7%A7%81%E6%9C%89/farm-demo/node_modules/.pnpm/@farmfe+core@1.7.4/node_modules/@farmfe/core/dist/plugin/js/vite-server-adapter.js:107:13)
at configureServer (file:///Users/gedatou/IdeaProjects/%E7%A7%81%E6%9C%89/farm-demo/node_modules/.pnpm/vite-plugin-vue-inspector@5.3.1_vite@5.4.18_@types+node@22.14.1_/node_modules/vite-plugin-vue-inspector/dist/index.mjs:211:35)
at VitePluginAdapter.configureDevServer (file:///Users/gedatou/IdeaProjects/%E7%A7%81%E6%9C%89/farm-demo/node_modules/.pnpm/@farmfe+core@1.7.4/node_modules/@farmfe/core/dist/plugin/js/vite-plugin-adapter.js:111:19)
at file:///Users/gedatou/IdeaProjects/%E7%A7%81%E6%9C%89/farm-demo/node_modules/.pnpm/@farmfe+core@1.7.4/node_modules/@farmfe/core/dist/index.js:235:81
at Array.forEach ()
at createDevServer (file:///Users/gedatou/IdeaProjects/%E7%A7%81%E6%9C%89/farm-demo/node_modules/.pnpm/@farmfe+core@1.7.4/node_modules/@farmfe/core/dist/index.js:235:34)
at async start (file:///Users/gedatou/IdeaProjects/%E7%A7%81%E6%9C%89/farm-demo/node_modules/.pnpm/@farmfe+core@1.7.4/node_modules/@farmfe/core/dist/index.js:34:27)
at async handleAsyncOperationErrors (file:///Users/gedatou/IdeaProjects/%E7%A7%81%E6%9C%89/farm-demo/node_modules/.pnpm/@farmfe+cli@1.0.4/node_modules/@farmfe/cli/dist/utils.js:111:9)

Node.js v23.10.0
 ELIFECYCLE  Command failed with exit code 1.

System Info

System:Mac
Browers: Google
npmPackages:unplugin-vue-inspector

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions