-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
main thread panics if you pass an absolute path to import() #4641
Comments
Can you provide the actual panic? |
[Code] const imp = await import(`${Deno.cwd()}\\commands\\echo.ts`);
console.log(imp); [Panic]
[Output after adding
|
Actually it might be related to #3355. The |
Actually it's definitely #3355 I had encountered this problem a while ago - quick solution was to prefix the import with |
@bartlomieju shall I remove / close #4646 PR and work it out some other way ? |
Looks fixed in 1.7.4:
|
I had made an error with the way I was setting up the path for dynamic imports, and it was crashing showing a thread panic on the rust side. I checked the path, and it was using the actual absolute path on windows (C:...). I fixed this to use the relative path, and it loads fine. The problem, in my opinion, is that it panics when the path provided is not using the file:/// prefix, or a relative path.
The text was updated successfully, but these errors were encountered: