vueuse: Build errors with vue-tsc --noEmit && vite build

`> Executing task: npm run build <

@0.0.0 build A:\Test\comic-pc vue-tsc --noEmit && vite build

node_modules/@vueuse/shared/index.d.ts:35:5 - error TS1131: Property or signature expected.

35 get value(): T; ~~~

node_modules/@vueuse/shared/index.d.ts:35:9 - error TS1005: ‘;’ expected.

35 get value(): T; ~~~~~

node_modules/@vueuse/shared/index.d.ts:35:16 - error TS1005: ‘;’ expected.

35 get value(): T; ~

node_modules/@vueuse/shared/index.d.ts:36:9 - error TS1005: ‘;’ expected.

36 set value(value: T | null | undefined); ~~~~~

node_modules/@vueuse/shared/index.d.ts:36:20 - error TS1005: ‘,’ expected.

36 set value(value: T | null | undefined); ~

node_modules/@vueuse/shared/index.d.ts:37:1 - error TS1128: Declaration or statement expected.

37 }; ~

Found 6 errors.

npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! @0.0.0 build: vue-tsc --noEmit && vite build npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the @0.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.`

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 4
  • Comments: 19 (2 by maintainers)

Most upvoted comments

We temporarily close this due to the lack of enough information. Please provide a minimal reproduction to reopen the issue. Thanks.

the same

Hi @antfu @huoyou and everyone , after this update in my project everything works well

"dependencies": {
    "@auth0/auth0-spa-js": "^1.22",
    "@heroicons/vue": "^1.0.6",
    "@tailwindcss/aspect-ratio": "^0.2.0",
    "@tailwindcss/forms": "^0.2.1",
    "@tailwindcss/typography": "^0.4.0",
    "@vuepic/vue-datepicker": "^3.2.1",
    "@vueuse/core": "^8.6.0",
    "axios": "^0.27.2",
    "date-fns": "^2.28.0",
    "http-status-codes": "^2.1.4",
    "mosha-vue-toastify": "^1.0.23",
    "tailwindcss": "^2.2.7",
    "uuid": "^8.3.2",
    "vue": "^3.2.37",
    "vue-final-modal": "^3.4.3",
    "vue-i18n": "^9.1.10",
    "vue-next-select": "^2.10.4",
    "vue-router": "^4.0.15",
    "vue3-loading-overlay": "^0.0.0",
    "vue3-transitions": "^1.0.0",
    "vuex": "^4.0.2",
    "vuex-persist": "^3.1.3",
    "vuex-smart-module": "^1.0.0"
  },
  "devDependencies": {
    "@intlify/vite-plugin-vue-i18n": "^3.4.0",
    "@types/node": "^17.0.41",
    "@types/uuid": "^8.3.4",
    "@vitejs/plugin-vue": "^2.3.3",
    "@vue/compiler-sfc": "^3.2.8",
    "autoprefixer": "^10.2.6",
    "postcss": "^8.3.5",
    "typedoc": "^0.22.17",
    "typescript": "^4.7.3",
    "vite": "^2.9.0",
    "vue-intellisense": "^1.0.1",
    "vue-tsc": "^0.37"
  }

image

Left - https://github.com/vueuse/vueuse/issues/1097#issuecomment-1150149776 Right - Actual package.json