Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Vue throws warnings when using Typescript #379

Open
yooouuri opened this issue Jul 31, 2020 · 0 comments
Open

Vue throws warnings when using Typescript #379

yooouuri opened this issue Jul 31, 2020 · 0 comments
Milestone

Comments

@yooouuri
Copy link

yooouuri commented Jul 31, 2020

Version

5.0.0

Reproduction link

https://github.com/yooouuri/vue-rollup-typescript

Steps to reproduce

Check out the repo: https://github.com/yooouuri/vue-rollup-typescript

Run yarn install && yarn build

After it, run yarn link

In the consumer project, run yarn link vue-components

Create component where it uses the form-input component:

<template>
  <div id="app">
    <p-form-input type="text" name="some_input" v-model="inputValue" /> {{ inputValue }}
  </div>
</template>

<script lang="ts">
import Vue from 'vue'

import PFormInput from 'vue-components/esm/components/form-input'

export default Vue.extend({
  name: 'App',
  components: {
    PFormInput,
  },
  data() {
    return {
      inputValue: 'normal'
    }
  }
})
</script>

It will complain about no types found, ignore it. When you run it and try to enter something in the input, it will throw 3 warnings...

Screenshot 2020-07-31 at 10 32 05

What is expected?

Use the component without Vue throwing warnings...

What is actually happening?

Vue throws warnings, should not throw these warnings

@yooouuri yooouuri changed the title Vue throws warnings when using Typescript import vue from 'vue' Vue throws warnings when using Typescript Jul 31, 2020
@znck znck added this to the Zero Issues milestone Oct 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants