-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Deno compile - module not found on Windows in cjs pkg re-exporting relative path with parent component #24785
Comments
Did you try in 1.45.4 (the actual latest)? It might be fixed there. |
Yes i wrote wrong version in the post i am on latest. Seems you cannit mix modules and commonjs in deno compile, makes me wonder why they announced npm support when it dosnt work. Seems to be a problem for 40% of npm packages that still uses cjs |
It's seems to just a Windows thing and the internals of deno compile changed in 1.45.0 to not expose absolute file paths so there might be some bugs related to that. I was able to only reproduce this on Windows. |
so if i was to downgrade 1 version it would work? |
Version: Deno 1.45.0 (Latest)
Deno compile certain npm packages casues module not found when executing the .exe after compile
[ERR_MODULE_NOT_FOUND] Cannot find module "C:\Users\Ulrik\AppData\Local\Temp\deno-compile-Simconnect_test.exe\node_modules\localhost\node-simconnect\3.6.2\dist\dto../datastructures/VersionBaseType" imported from "C:\Users\Ulrik\AppData\Local\Temp\deno-compile-Simconnect_test.exe\node_modules\localhost\node-simconnect\3.6.2\dist\dto\index.js""
Command to compile: deno compile -A main.ts --Unstable npm:[email protected]
Here is my code:
The text was updated successfully, but these errors were encountered: