-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
fix: npm package "urllib": invalid type: map, expected a string #23862
Comments
🙋 The same with import joi from "npm:joi@17.13.1";
console.log(joi); Works with Deno version 1.43.3. Fails with Deno version 1.43.4:
The url https://registry.npmjs.org/joi, does indeed return json that, at the position given in the error message, contains a run-script value that isn't a string, but a json object. It was present in the ancient
🫚 Root cause?I suspect this newly found insensitivity to incorrect
Following that update, leads to this commit in That's how far my understanding goes! I'm not familiar enough with serde in rust to know what the previous default behaviour was, that was apparently overridden here. In general though, for npm compatibility, we might want to be more lenient to parts of json from older versions of modules that we don't even need to use? |
CC @dsherret can you take a look? Seems like a regression. |
I think this was caused by denoland/deno_npm#47 |
It looks so, here's the problematic bit:
I'll open a PR to |
This is now fixed in Deno 1.43.5 |
Thank you so much @dsherret and @bartlomieju! |
Version: Deno 1.43.4
There is a file named test.ts with the following content:
An error occurred when executing the command
deno check -r test.ts
:This issue was not present in Deno 1.43.3 according to the actual test.
The text was updated successfully, but these errors were encountered: