Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 901 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 901 Bytes

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.