-
-
Notifications
You must be signed in to change notification settings - Fork 44
Error when i start script with --no-check flag #97
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
Comments
Hi @lowray, thanks for raising this 😄 Having read the Deno manual (REF: https://deno.land/manual@v1.6.2/getting_started/typescript#code--no-checkcode-option) I believe this may be an issue with @garronej's https://github.com/garronej/evt library which Opine uses for it's eventing interface 😢. Namely check out this part of the
Which I believe may be the issue as ...
export { CtxLike } from "./CtxLike.ts";
... I wonder if instead the code should be something like... /** https://docs.evt.land/api/ctx */
export type Ctx<Result> = import("./Ctx.ts").Ctx<Result>;
export type DoneOrAborted<Result> = import("./Ctx.ts").DoneOrAborted<Result>;
export type CtxLike = import("./CtxLike.ts").CtxLike; // Exported as a type in the same fashion as everything else?
/**
* Minimal interface that an object must implement to be a valid context argument
* ( for interop between mismatching EVT versions )
*/
export type VoidCtxLike = import("./CtxLike.ts").VoidCtxLike; // Wonder if this line also needs corrected as currently exporting `CtxLike` as `VoidCtxLike`
export type Evt<T> = import("./Evt.ts").Evt<T>;
... We can confirm that it is the export { Evt } from "https://deno.land/x/evt@v1.9.11/mod.ts"; Which results in... error: Uncaught SyntaxError: The requested module './CtxLike.ts' does not provide an export named 'CtxLike'
export { CtxLike } from "./CtxLike.ts";
~~~~~~~
at <anonymous> (<https://deno.land/x/evt@v1.9.11/lib/types/interfaces/index.ts>:5:1) Would you mind a raising an issue on the https://github.com/garronej/evt repo for the maintainers to fix there? |
I've opened an issue garronej/evt#17
Sorry for the disturbance. |
@lowray no need to apologise! 😄 Are you referring to Thanks for raising the issue on the evt repo 🙂 |
Thanks, @cmorten for doing the investigation work for me! |
@cmorten @lowray DONE. I addressed the issue in v1.9.12 of EVT 🎉. |
Nice one @garronej, you’re a ⭐️! Gosh that does sounds exhausting 😞 I’ll get things sorted from this end |
Uh oh!
There was an error while loading. Please reload this page.
Issue
Setup:
I'm getting an error while i disable ts check for my app
Details
command :
deno run -A --no-check serve.ts
output :
code i use :
The text was updated successfully, but these errors were encountered: