Skip to content

markbrockhoff/stencil-component-starter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stencil JS Vue Output Target Vue Issue

This is a small demo Project to reproduce the issue submitted here.

To run it, just make the script "demo.sh" in the root of this project executable and run it:

chmod +x demo.sh
bash ./demo.sh

This will install all dependencies and build everything. At the end you will see the error "Property 'modelValue' is missing in type..." as described in the issue.

Fixing the problem

If you go into the file vue-target/dist/types/vue-component-lib/utils.d.ts and make the property modelValue optional like so:

export interface InputProps extends Object {
    modelValue?: string | boolean;
}

Then go into the directory vue-app an run npm run build again. You will see, that the error is gone.

About

Minimal starter project for building shareable web components with Stencil https://github.com/ionic-team/stencil

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 83.6%
  • Vue 5.2%
  • JavaScript 4.3%
  • HTML 3.8%
  • Shell 2.9%
  • CSS 0.2%