vue3-notion icon indicating copy to clipboard operation
vue3-notion copied to clipboard

Could not find a declaration file for module

Open brachkow opened this issue 2 years ago • 0 comments

Describe the bug While this project is written in TS, it does not automatically provide types so any import results in this error:

error TS7016: Could not find a declaration file for module 'vue3-notion'. '/home/runner/work/example/node_modules/vue3-notion/dist/index.umd.js' implicitly has an 'any' type

To Reproduce Steps to reproduce the behavior:

  1. Import NotionRenderer to Vue3 SFC
<script lang="ts" setup>
  import { NotionRenderer } from 'vue3-notion';
</script>

<template>
  <NotionRenderer />
</template>
  1. Run typecheck
  2. See error

Expected behavior No type error

brachkow avatar Oct 06 '22 14:10 brachkow