0

I completed my project on vue and want to build for production. When I enter yarn build, Typescript detects errors in the @vueuse/core source

ERROR in /path/to/project/node_modules/@vueuse/shared/index.d.ts(112,5):
112:5 Property or signature expected.
    110 |  */
    111 | declare type RemovableRef<T> = Omit<Ref<T>, 'value'> & {
  > 112 |     get value(): T;
        |     ^
    113 |     set value(value: T | null | undefined);
    114 | };
    115 | /**

package.json

{
...
  "dependencies": {
...
    "@vue/composition-api": "^1.7.0",
    "@vueuse/core": "^9.1.0",
    "vue": "^2.6.14",
    "vue-composition-api": "^0.0.1",
    "vue-router": "^3.2.0",
    "vue-template-compiler": "^2.6.14"
  },
  "devDependencies": {
    "@vue/cli-plugin-typescript": "^5.0.8",
    "@vue/cli-service": "^5.0.8",
    "font-awesome": "4.7.0",
    "typescript": "~4.1.5"
...
  }
}

1 Answer 1

1

Update to "typescript": "^4.4.4"

https://github.com/vueuse/vueuse/issues/876

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.