Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

experimentalDecorators problem #9526

Open
jhcpeixoto opened this issue Mar 20, 2024 · 0 comments
Open

experimentalDecorators problem #9526

jhcpeixoto opened this issue Mar 20, 2024 · 0 comments
Labels
bug Something isn't working transpiler parser || printer

Comments

@jhcpeixoto
Copy link

What version of Bun is running?

1.0.33+9e91e137f

What platform is your computer?

Darwin 23.3.0 arm64 arm

What steps can reproduce the bug?

bun run build.ts

/// <reference types='bun-types' />
import { existsSync, rmSync } from 'fs';
import pkg from './package.json';

const root = import.meta.dir;

const libDir = root + '/build';
if (existsSync(libDir)) rmSync(libDir, { recursive: true });

// Bundle all with Bun
Bun.build({
    root,
    format: 'esm',
    target: 'bun',
    outdir: libDir,
    minify: {
        whitespace: true,
    },
    entrypoints: ['./src/index.ts', './src'],
    external: Object.keys((pkg as any).dependencies! ?? {}),
}).then(console.log);

// Build type declarations
Bun.spawn(['bun', 'x', 'tsc', '--outdir', libDir], {
    stdout: 'inherit',
    stderr: 'inherit',
});

What is the expected behavior?

No response

What do you see instead?

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

Additional information

in tsconfig.json I have this path: "@models/types": ["./src/models/types"],

@jhcpeixoto jhcpeixoto added bug Something isn't working typescript Something for TypeScript labels Mar 20, 2024
@Electroid Electroid added transpiler parser || printer and removed typescript Something for TypeScript labels Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working transpiler parser || printer
Projects
None yet
Development

No branches or pull requests

2 participants