yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.44k stars 2.73k forks source link

yalc add module and yarn start take error #8762

Closed panxiaoxiao0823 closed 2 years ago

panxiaoxiao0823 commented 2 years ago

yalc add module is done,and yarn start take error, and my other projects can be used normally, only for "@xin/xin-panda": "file:.yalc/@xin/xin-panda" is wrong,but i don`t konw why.

Failed to compile.

./node_modules/@xin/xin-panda/lib/xin-panda.umd.min.js Module not found: Error: [CaseSensitivePathsPlugin] /Users/panxiaoxiao/Documents/xrxs/unicorn/node_modules/Vue/dist/vue.runtime.esm.js does not match the corresponding path on disk vue.

Those are some screenshots and my package.json: image

project package.json:

{
  "name": "unicorn",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint",
    "analyz": "npm_config_report=true npm run build",
    "start": "xin start",
    "yalc:xin-ui": "yalc add @xin/xin-ui",
    "yalc:remove": "yalc remove --all"
  },
  "dependencies": {
    "@fullcalendar/daygrid": "5.6.0",
    "@fullcalendar/interaction": "5.6.0",
    "@fullcalendar/timegrid": "5.6.0",
    "@fullcalendar/vue": "5.6.0",
    "@xin/xin-core": "1.0.41",
    "@xin/xin-panda": "file:.yalc/@xin/xin-panda",
    "@xin/xin-ui": "1.4.30",
    "axios": "^0.18.0",
    "caret-pos": "^2.0.0",
    "clipboard": "^2.0.1",
    "core-js": "3.19.1",
    "crypto-js": "^3.1.9-1",
    "element-ui": "2.8.2",
    "html2canvas": "1.0.0-rc.5",
    "lodash-es": "^4.17.15",
    "promise.prototype.finally": "^3.1.2",
    "qrcode": "^1.4.0",
    "shortid": "^2.2.15",
    "tippy.js": "^6.3.5",
    "tslib": "^2.3.1",
    "uuid": "^8.1.0",
    "vue": "2.6.14",
    "vue-baidu-map": "0.21.22",
    "vue-baidu-map-v3": "^1.0.2",
    "vue-draggable-resizable": "^2.3.0",
    "vue-infinite-scroll": "^2.0.2",
    "vue-qrcode-component": "2.1.1",
    "vue-router": "3.0.2",
    "vue-tour": "1.1.0",
    "vuedraggable": "^2.24.3",
    "vuex": "3.1.0",
    "wangeditor": "2.1.23",
    "yorkie": "^2.0.0"
  },
  "devDependencies": {
    "@babel/preset-env": "^7.5.5",
    "@types/lodash-es": "^4.17.3",
    "@types/qs": "^6.9.5",
    "@types/shortid": "^0.0.29",
    "@types/sortablejs": "^1.10.6",
    "@types/store": "^2.0.1",
    "@types/uuid": "^8.0.0",
    "@typescript-eslint/eslint-plugin": "^4.28.2",
    "@typescript-eslint/parser": "^4.28.2",
    "@vue/cli-plugin-babel": "4.5.14",
    "@vue/cli-plugin-eslint": "4.5.14",
    "@vue/cli-plugin-typescript": "4.5.14",
    "@vue/cli-service": "4.5.14",
    "@vue/eslint-config-typescript": "^5.0.0",
    "@xin/xin-cli": "1.0.33",
    "axios": "^0.18.0",
    "babel-eslint": "^10.0.1",
    "babel-plugin-component": "^1.1.1",
    "clipboardy": "^2.1.0",
    "cropperjs": "^1.4.3",
    "css-color-function": "^1.3.3",
    "eslint": "^7.30.0",
    "eslint-plugin-vue": "^7.13.0",
    "inquirer": "^7.0.0",
    "lint-staged": "8.1.0",
    "minimist": "^1.2.5",
    "mocker-api": "^2.0.4",
    "mockjs": "^1.1.0",
    "moment": "^2.29.0",
    "qs": "^6.6.0",
    "raw-loader": "^2.0.0",
    "sa-sdk-javascript": "^1.15.20",
    "sass": "1.43.2",
    "sass-loader": "10.0.5",
    "screenfull": "^5.1.0",
    "shelljs": "^0.8.3",
    "store": "^2.0.12",
    "typescript": "^4.3.4",
    "vue-cookies": "^1.7.4",
    "vue-grid-layout": "2.3.11",
    "vue-property-decorator": "8.4.2",
    "vue-template-compiler": "2.6.14",
    "vuex-class": "^0.3.1",
    "webpack-bundle-analyzer": "^3.9.0"
  },
  "gitHooks": {
    "pre-commit": "lint-staged",
    "commit-msg": "node git-hooks/commit-msg.js"
  },
  "lint-staged": {
    "*.js": [
      "vue-cli-service lint",
      "git add"
    ],
    "*.ts": [
      "vue-cli-service lint",
      "git add"
    ],
    "*.vue": [
      "vue-cli-service lint",
      "git add"
    ],
    "*": [
      "node git-hooks/check-filename.js --scope=src --module=commit"
    ]
  }
}

module package.json

{
  "name": "@xin/xin-panda",
  "version": "1.0.3",
  "description": "",
  "main": "lib/xin-panda.umd.min.js",
  "types": "types/index.d.ts",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "patch": "npm version patch -m \"Upgrade to %s\" && git push && git push --tags ",
    "minor": "npm version minor -m \"Upgrade to %s\" && git push && git push --tags",
    "major": "npm version major -m \"Upgrade to %s\" && git push && git push --tags",
    "alpha": "npm version prerelease --preid=alpha && git push && git push --tags",
    "build": "vue-cli-service build --dest lib --target lib --name xin-panda ./src/components/index.ts",
    "lint": "vue-cli-service lint",
    "storybook": "start-storybook -p 6006",
    "build-storybook": "build-storybook"
  },
  "repository": {
    "type": "git",
    "url": "git@code.qijiayoudao.net:liufang/own-panda.git"
  },
  "keywords": [],
  "author": "liufang",
  "license": "ISC",
  "dependencies": {
    "@handsontable/vue": "^11.0.1",
    "core-js": "^3.6.5",
    "handsontable": "^11.0.1",
    "moment": "^2.29.1",
    "vue": "^2.6.11",
    "vue-class-component": "^7.2.3",
    "vue-property-decorator": "^9.1.2"
  },
  "devDependencies": {
    "mockjs": "^1.1.0",
    "@babel/core": "^7.16.0",
    "@storybook/addon-actions": "^6.4.9",
    "@storybook/addon-essentials": "^6.4.9",
    "@storybook/addon-links": "^6.4.9",
    "@storybook/vue": "^6.4.9",
    "@types/lodash-es": "^4.17.5",
    "@typescript-eslint/eslint-plugin": "^4.18.0",
    "@typescript-eslint/parser": "^4.18.0",
    "@vue/cli-plugin-babel": "~4.5.0",
    "@vue/cli-plugin-eslint": "~4.5.0",
    "@vue/cli-plugin-typescript": "~4.5.0",
    "@vue/cli-service": "~4.5.0",
    "@vue/eslint-config-standard": "^5.1.2",
    "@vue/eslint-config-typescript": "^7.0.0",
    "autoprefixer": "^10.4.0",
    "axios": "^0.24.0",
    "babel-loader": "^8.2.3",
    "chalk": "^4.1.0",
    "element-ui": "^2.15.6",
    "eslint": "^6.7.2",
    "eslint-plugin-import": "^2.20.2",
    "eslint-plugin-node": "^11.1.0",
    "eslint-plugin-promise": "^4.2.1",
    "eslint-plugin-standard": "^4.0.0",
    "eslint-plugin-vue": "^6.2.2",
    "lodash-es": "^4.17.21",
    "qs": "^6.10.2",
    "runjs": "^4.4.2",
    "sass": "^1.44.0",
    "sass-loader": "10.1.1",
    "ts-loader": "^9.2.6",
    "typescript": "~4.1.5",
    "vue-loader": "^15.9.8",
    "vue-template-compiler": "^2.6.11"
  }
}
merceyz commented 2 years ago

We can't help with yalc, use their issue tracker instead https://github.com/wclr/yalc