#experimentalDecorators problem

1 messages · Page 1 of 1 (latest)

alpine sandal
#

logs: [
13 | import { Coordinates } from '@models/types';
^
error: No matching export in "src/models/types/index.ts" for import "Coordinates"

lost obsidian
#

can you share the code on how you are exporting Coordinates? (filename/location included)

dawn gate
#

if you change the code to import type { Coordinates } from '@models/types; does it work? I'm pretty sure there's a bug in bun with decorator metadata and type imports

alpine sandal
#

like i have a custom decorator on tsconfig to @models be src/models

alpine sandal
#

Any tip to fix?

alpine sandal
#

Bump 🆙

alpine sandal
#

BUMP ☝️

formal needle
#

We'd need to see the src/models/types/index.ts

#

Did you actually export the Coordinates

#

Is src/models supposed to be relative?

alpine sandal
#
export * from './coordinates.type';
#

like, with node this work perfect

#

with bun he show this problem

formal needle
#

What's in coordinates.type?

alpine sandal
#
export interface Coordinates {
    lat: number;
    lng: number;
}