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

Build fails as of Bun 1.1.3 / 1.1.4 #7

Open
ThatOneCalculator opened this issue Apr 17, 2024 · 1 comment
Open

Build fails as of Bun 1.1.3 / 1.1.4 #7

ThatOneCalculator opened this issue Apr 17, 2024 · 1 comment

Comments

@ThatOneCalculator
Copy link

ThatOneCalculator commented Apr 17, 2024

% bun run build       
$ bun build src/index.ts
3 | import { join as join2 } from "node:path";
             ^
error: No matching export in "node:path" for import "join"
    at /home/kainoa/redacted/node_modules/elysia-autoload/dist/index.js:3:10

7 | import { isAbsolute, join } from "node:path";
             ^
error: No matching export in "node:path" for import "isAbsolute"
    at /home/kainoa/redacted/node_modules/elysia-autoload/dist/index.js:7:10

7 | import { isAbsolute, join } from "node:path";
                         ^
error: No matching export in "node:path" for import "join"
    at /home/kainoa/redacted/node_modules/elysia-autoload/dist/index.js:7:22
error: script "build" exited with code 1

Code:
src/index.ts:

const app = new Elysia();
// ...
app.use(
	autoload({
		types: true,
	}),
);

Bun version: 1.1.4
Elysia version: 1.0.13
elysia-autoload version: 0.2.3

bun run dev still works fine.

@kravetsone
Copy link
Owner

% bun run build       
$ bun build src/index.ts
3 | import { join as join2 } from "node:path";
             ^
error: No matching export in "node:path" for import "join"
    at /home/kainoa/redacted/node_modules/elysia-autoload/dist/index.js:3:10

7 | import { isAbsolute, join } from "node:path";
             ^
error: No matching export in "node:path" for import "isAbsolute"
    at /home/kainoa/redacted/node_modules/elysia-autoload/dist/index.js:7:10

7 | import { isAbsolute, join } from "node:path";
                         ^
error: No matching export in "node:path" for import "join"
    at /home/kainoa/redacted/node_modules/elysia-autoload/dist/index.js:7:22
error: script "build" exited with code 1

Code: src/index.ts:

const app = new Elysia();
// ...
app.use(
	autoload({
		types: true,
	}),
);

Bun version: 1.1.4 Elysia version: 1.0.13 elysia-autoload version: 0.2.3

bun run dev still works fine.

Bun issue - oven-sh/bun#11321

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants