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
TypeError from Deno >= 1.5.1 #8355
Comments
It is an internal TypeScript error of some sort. The challenge seems that it looks like it is only raised when there is an internal in memory module we are generating for the tests. Will need to do a bit of investigation to narrow down why it is occurring. |
Ok, thank you for the quick reply. Yes, it seems something related with testing. |
This isn't a testing-related bug; here's a minimal test case that can be run with // This must be a .ts file run from `deno run`
import "./dep.js"; // dep.js
class CssSyntaxError extends Error {}
CssSyntaxError.default = CssSyntaxError; |
It is a testing related bug. Just because one test case works, doesn't mean there isn't a bug. 😁 |
I meant that it isn't a testing-related bug because the error shows up in the above test case even when running |
Ah, ok, thanks for isolating it a bit better. I mis-read your comment. I thought you were point out it as I mis-understood "minimal test case" implied "minimal reproduction". |
Yes, I can confirm that this is the cause of the error. In theory, this change would provide better support for typescript (postcss/postcss#1459) |
It seems like the latest version of Deno fixes this error, so I'm closing this. |
Hi.
We have a port of postcss to Deno here: https://github.com/postcss/postcss-deno/tree/master/deno
The code is converted automatically so it keeps synced with the original repository.
From Deno 1.5.1 and upper, we are getting the following error on make the conversion and running the tests:
https://github.com/postcss/postcss/runs/1380656312?check_suite_focus=true#step:5:185
The code works fine in Deno 1.5.0. It seems like a Typescript error but I couldn't find anything wrong in the code.
Any hint?
The text was updated successfully, but these errors were encountered: