Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: static imports (#1289)
This should fix the error blocking the upgrade to vue-tsc v0.31.1

```
tests/components/ScriptSetupWithChildren.vue:10:1 - error TS1232: An import declaration can only be used in a namespace or module.

10 import ScriptSetup from './ScriptSetup.vue'
   ~~~~~~

tests/components/ScriptSetupWithChildren.vue:11:1 - error TS1232: An import declaration can only be used in a namespace or module.

11 import WithProps from './WithProps.vue'
   ~~~~~~
```
  • Loading branch information
cexbrayat committed Feb 2, 2022
1 parent cd32eeb commit 54359e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/components/ScriptSetupWithChildren.vue
Expand Up @@ -4,11 +4,12 @@ import { defineAsyncComponent } from 'vue'
import Hello from './Hello.vue'
import ComponentWithInput from './ComponentWithInput.vue'
import ComponentWithoutName from './ComponentWithoutName.vue'
import ScriptSetup from './ScriptSetup.vue'
import WithProps from './WithProps.vue'
const ComponentAsync = defineAsyncComponent(
() => import('./ComponentWithoutName.vue')
)
import ScriptSetup from './ScriptSetup.vue'
import WithProps from './WithProps.vue'
</script>

<template>
Expand Down

0 comments on commit 54359e5

Please sign in to comment.