Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

修复在vite下无法使用admin-api问题 #6

Merged
merged 12 commits into from
Jun 24, 2021
Merged

修复在vite下无法使用admin-api问题 #6

merged 12 commits into from
Jun 24, 2021

Conversation

guqing
Copy link
Member

@guqing guqing commented Jun 24, 2021

问题原因:package.json下缺少exports配置
解决方案: admin-api的package.json添加对应配置,例如:

{
  // ....
  "exports": {
    ".": {
      "import": "./lib/index.js",
      "require": "./lib/index.js"
    },
    "./package.json": "./package.json"
  }
}

@guqing guqing requested a review from ruibaby June 24, 2021 07:58
@guqing guqing self-assigned this Jun 24, 2021
@guqing guqing added the kind/bug Categorizes issue or PR as related to a bug. label Jun 24, 2021
@guqing guqing linked an issue Jun 24, 2021 that may be closed by this pull request
@ruibaby ruibaby merged commit 2d9b36a into halo-dev:master Jun 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

在 Vite 下使用异常
2 participants