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

error: File name too long (os error 63) #23821

Open
eavidy opened this issue May 15, 2024 · 1 comment
Open

error: File name too long (os error 63) #23821

eavidy opened this issue May 15, 2024 · 1 comment

Comments

@eavidy
Copy link

eavidy commented May 15, 2024

Version: Deno 1.43.3
OS: Mac OS

Reproduce

a.js

export * from "./b.js";
export const deps = 4;

b.js

import { deps } from ".//a.js";
console.log(deps);

Run: deno run b.js

Its output

error: File name too long (os error 63)
    at file:///Users/asnow/deno//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b.js:1:22

Expect

Imported ".//a.js" in b.js. This is an unexpected writing for me, and I am not sure if it complies with the standard, but I can print the results in NdoeJs. And an error was printed in Deno

@Eason0729
Copy link

I think ESM doesn't expect cyclic imports and I am surprised that Nodejs work.
Deno should deliver same behavior on a best effort.

It is what I found from swc's document:

image

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