sutras / sard-uniapp

sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库。
MIT License
39 stars 11 forks source link

Tag组件的NPM产物缺少 #1

Closed censujiang closed 9 months ago

censujiang commented 10 months ago

项目提示导入错误,在NPM产物中看到common不存在,但是在目前这个代码仓库中看到是存在的,应该是打包时遗漏的

[plugin:vite:import-analysis] Failed to resolve import "./common" from "node_modules\.pnpm\sard-uniapp@1.0.3_@dcloudio+types@3.4.3_vue@3.4.3\node_modules\sard-uniapp\components\tag\tag.vue". Does the file exist?
at ../node_modules/.pnpm/sard-uniapp@1.0.3_@dcloudio+types@3.4.3_vue@3.4.3/node_modules/sard-uniapp/components/tag/tag.vue:20:25
  3  |  import { classNames, stringifyStyle, createBem } from "../../utils";
  4  |  import SarIcon from "../icon/icon.vue";
  5  |  import { tagProps } from "./common";
     |                            ^
  6  |  const __default__ = {
  7  |    options: {

https://www.npmjs.com/package/sard-uniapp?activeTab=code

censujiang commented 10 months ago

image image