GithubHelp home page GithubHelp logo

Upgrade to Typescript 5.0 about fublog HOT 2 CLOSED

floscher avatar floscher commented on August 29, 2024
Upgrade to Typescript 5.0

from fublog.

Comments (2)

floscher avatar floscher commented on August 29, 2024

@thooyork This leads to an error in the client when npm install is being run and it is updated from 1.3.8 to 1.3.11:

"vue-tsc": "^1.3.0"

https://github.com/fumiX/fuBlog/blob/2cde5d62115453d2534688377c7d8b9258992d20/package-lock.json#L14265-L14280

The error message was something similar to vuejs/language-tools#2570 . It complained about this line, that the value had a type that is not allowed:

<RouterView :userPermissions="userPermissions" />

To reproduce do this to v0.1.0:

rm -r node_modules/ */node_modules/ package-lock.json && npm install && npm run build

Results in this error:

src/App.vue(46,19): error TS2345: Argument of type '{ [x: string]: any; userPermissions: { canEditUserRoles: boolean; canCreatePost: boolean; canEditPost: boolean; canDeletePost: boolean; } | null; }' is not assignable to parameter of type 'AllowedComponentProps & ComponentCustomProps & VNodeProps & RouterViewProps'.
         Object literal may only specify known properties, and 'userPermissions' does not exist in type 'AllowedComponentProps & ComponentCustomProps & VNodeProps & RouterViewProps'.
       src/views/PostFormView.vue(85,34): error TS2339: Property 'dropzoneHighlight' does not exist on type '{ default(): any; }'.
       src/views/PostFormView.vue(88,42): error TS2339: Property 'dropzoneHighlight' does not exist on type '{ default(): any; }'.

from fublog.

thooyork avatar thooyork commented on August 29, 2024

implemented.

from fublog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.