umijs / plugins

🍣 The one-stop shop for official Umi plugins and presets.
349 stars 238 forks source link

pnpm安装后运行失败,openAPI找不到模块swagger-ui.css #911

Open haobarry opened 1 year ago

haobarry commented 1 year ago

npm 安装完 运行项目没报错 ,但是用pnpm安装完后,运行项目报错 ? 另外这个openAPI是干什么的官网没找到这个配置说明, 而且我另外一个项目没用这个插件也没问题.

umi3.5 版本 plugin-openapi 1.8版本

`error in ./src/.umi/plugin-openapi/openapi.tsx

Module build failed (from ./node_modules/.pnpm/@umijs+deps@3.5.35/node_modules/@umijs/deps/compiled/babel-loader/index.js): AssertionError [ERR_ASSERTION]: [MFSU] package.json not found for dep swagger-ui-dist/swagger-ui.css which is imported from D:\开发\dashboard-react-typescript\src.umi\plugin-openapi\openapi.tsx`