As I was refactoring a component (Vue+Quasar), the type Org
that I defined in model.ts
suddenly raised the error of not being exported in model.ts
.
The structure of the tree is
my-app/
├─ src/
│ ├─ components/
│ │ ├─ M2Details.vue
│ │ ├─ model.ts
In M2Details.vue
I have
<script setup lang='ts'>
import { Org, OrgDetails} from './model.ts';
(...)
</script>
In model.ts
I have
// single organization and its results
export type Org = {
OrgDetails: OrgDetails
Org: OrgDetails[]
}
export type OrgDetails = {
Boss: string
NrTested: number
NrFailed: number
}
The only error in the console is
Uncaught SyntaxError: The requested module '/src/components/model.ts' does not provide an export named 'Org' (at M2Details.vue:12:10)
At the same time, vscode is happy with the import (his screenshot is from M2Details.vue
, on the line provided above
What could be the reason for this error I have never seen before?