team-innovation / vue-sfc-rollup

Quickly generate redistributable Vue components with Rollup
MIT License
696 stars 91 forks source link

[!] (plugin rpt2) Error: Debug Failure. Unhandled SyntaxKind: ImportClause. #137

Closed FattySpring closed 2 years ago

FattySpring commented 2 years ago

yarn build error [!] (plugin rpt2) Error: Debug Failure. Unhandled SyntaxKind: ImportClause.

windows 10 node@v16.16.0

{
  "name": "test-sfc",
  "version": "1.0.0",
  "description": "",

  "main": "dist/test-sfc.ssr.js",
  "browser": "dist/test-sfc.esm.js",
  "module": "dist/test-sfc.esm.js",
  "unpkg": "dist/test-sfc.min.js",
  "types": "dist/types/src/entry.esm.d.ts",

  "files": [
    "dist/*",
    "src/**/*.vue"
  ],
  "sideEffects": false,

  "scripts": {
    "serve": "vue-cli-service serve dev/serve.ts",
    "prebuild": "rimraf ./dist",
    "build": "cross-env NODE_ENV=production rollup --config build/rollup.config.js",
    "build:ssr": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format cjs",
    "build:es": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es",
    "build:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife",
    "postbuild": "rimraf ./dist/types/dev ./dist/types/src/entry.d.ts"
  },

  "dependencies": {
  },

  "devDependencies": {
    "@babel/core": "^7.14.6",
    "@babel/preset-env": "^7.14.7",
    "@babel/preset-typescript": "^7.14.5",
    "@rollup/plugin-alias": "^3.1.2",
    "@rollup/plugin-babel": "^5.3.0",
    "@rollup/plugin-commonjs": "^14.0.0",
    "@rollup/plugin-node-resolve": "^9.0.0",
    "@rollup/plugin-replace": "^2.4.2",
    "@vue/cli-plugin-babel": "^4.5.13",
    "@vue/cli-plugin-typescript": "^4.5.13",
    "@vue/cli-service": "^4.5.13",
    "@zerollup/ts-transform-paths": "^1.7.18",
    "cross-env": "^7.0.3",
    "minimist": "^1.2.5",
    "rimraf": "^3.0.2",
    "rollup": "^2.52.8",
    "rollup-plugin-terser": "^7.0.2",
    "rollup-plugin-vue": "^5.1.9",
    "rollup-plugin-typescript2": "^0.30.0",
    "ttypescript": "^1.5.12",
    "typescript": "^4.0.3",
    "vue": "^2.6.14",
    "vue-template-compiler": "^2.6.14"
  },
  "peerDependencies": {
    "vue": "^2.6.14"
  },
  "engines": {
    "node": ">=12"
  }
}
mgdodge commented 2 years ago

The decision has been made to deprecate vue-sfc-rollup in favor of better tooling in the Vue ecosyste, specifically the vite "library build" configuration. It is an excellent project, which is capable of everything vue-sfc-rollup strived to accomplish, and more.