Giter VIP home page Giter VIP logo

vue-type-check's People

Contributors

caugner avatar kahirokunn avatar williamthorsen avatar yuyz0112 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vue-type-check's Issues

"Object is possibly null" even inside v-if check.

<div v-if="foo !== null">
    {{ foo.content }}
</div>
274:11 Object is possibly 'null'.
  272 |       <div>
> 274 |         {{ foo.content }}
      |            ^^^^^^^
  275 |       </div>
  276 |     </template>

Vetur doesn't complain about this. I don't really know what to do about it.

Error: Debug Failure. Expected 3 === 1. Registered script kind should match new script kind

$ npx vue-type-check --onlyTemplate --workspace .                                  (10-16 16:48)
Error: Debug Failure. Expected 3 === 1. Registered script kind should match new script kind. /home/hentai/projects/waruimono/embeddedui/node_modules/@vue/cli-plugin-router/generator/template/src/App.vue.template
    at Object.assertEqual (/home/hentai/projects/waruimono/embeddedui/node_modules/typescript/lib/typescript.js:2193:17)
    at Object.getOrCreateSourceFileByPath [as getSourceFileByPath] (/home/hentai/projects/waruimono/embeddedui/node_modules/typescript/lib/typescript.js:135818:34)
    at tryReuseStructureFromOldProgram (/home/hentai/projects/waruimono/embeddedui/node_modules/typescript/lib/typescript.js:98326:28)
    at Object.createProgram (/home/hentai/projects/waruimono/embeddedui/node_modules/typescript/lib/typescript.js:97915:30)
    at synchronizeHostData (/home/hentai/projects/waruimono/embeddedui/node_modules/typescript/lib/typescript.js:135741:26)
    at Object.getSemanticDiagnostics (/home/hentai/projects/waruimono/embeddedui/node_modules/typescript/lib/typescript.js:135858:13)
    at VueInterpolationMode.doValidation (/home/hentai/projects/waruimono/embeddedui/node_modules/vue-language-server/dist/modes/template/interpolationMode.js:38:56)
    at /home/hentai/projects/waruimono/embeddedui/node_modules/vue-type-check/dist/index.js:77:47
    at Generator.next (<anonymous>)
    at fulfilled (/home/hentai/projects/waruimono/embeddedui/node_modules/vue-type-check/dist/index.js:5:58)

Windows support?

Hi. Does this run on Windows?

The tool runs well for our developers running Linux but just exits on our machines running Windows with no errors.

I spent a bit of time picking through the code and noticed the walk function in index.js concats 'file://' to the fs path which won't be valid in Windows. But after fixing that I just ran into problems deeper into the language service where files were not being found.

I haven't got the time to investigate this further at the moment so thought i'd raise it here to see if anyone has a solution.

npm package does not work

The latest commit in this repository is 84b308 (Jul 16, 2020), but the source npm package includes is older.
In the result, vtc installed from npm does not work at all currently.

Specifically, tests fail when you use the source published to npm.
Could you republish this package to npm?

Unable to get working

I have a project that is open in VS code that has the Vetur extension working with interpolation is showing errors in various templates.
I am executing vue-type-check with "vtc --workspace ./" in the command line but nothing is being returned. It is the same if I include --srcDir ./path/to/nested/component.
Please provide some further information and/or a test example that should work.

Regards

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.