The request url "/workspace/path/node_modules/koishi-plugin-theme-vanilla/dist/style.css" is outside of Vite serving allow list.
- /workspace/path/external/webui
- /workspace/path/node_modules/vite/dist/client
Refer to docs https://vitejs.dev/config/server-options.html#server-fs-allow for configurations and more details.
The request url "/workspace/path/node_modules/koishi-plugin-dataview/dist/style.css" is outside of Vite serving allow list.
The request url "/workspace/path/node_modules/koishi-plugin-theme-vanilla/dist/index.js" is outside of Vite serving allow list.
The request url "/workspace/path/node_modules/koishi-plugin-dataview/dist/index.js" is outside of Vite serving allow list.
The request url "/workspace/path/node_modules/koishi-plugin-theme-vanilla/dist/style.css" is outside of Vite serving allow list.
The request url "/workspace/path/node_modules/koishi-plugin-dataview/dist/style.css" is outside of Vite serving allow list.
使用 yarn dev 启动,此时 terminal 提示 The request url "/workspace/path/node_modules/koishi-plugin-theme-vanilla/dist/style.css" is outside of Vite serving allow list.
Describe the bug
在尝试开发 webui 时,会遇到如下 terminal错误:
尝试修改配置项以关闭:
terminal 无报错,但浏览器循环在 console 输出
[Vue Router warn]: No match found for location with path "/"
应当是 fs.strict 导致 router 无法找到 path 的问题
Steps to reproduce
git clone https://github.com/koishijs/webui/git ./external/webui
下载 webui 仓库yarn dev
启动,此时 terminal 提示The request url "/workspace/path/node_modules/koishi-plugin-theme-vanilla/dist/style.css" is outside of Vite serving allow list.
koishi.yml
:console.dev.fs.strict: false
关闭 strict[Vue Router warn]: No match found for location with path "/"
Expected behavior
能够正常路由
Screenshots
No response
Versions
Additional context
No response