-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Typescript error in Eta #18
Comments
I found the bug, it seemed to have to do with the partial support of Eta. Passing the config to it should do the trick. |
Still a problem with Typescript, @oscarotero we should add a notice in the docs or something that says to use |
Yep, I still having this problem. Why do you think it happens? Is Eta typescript incompatible with Deno? or it's because lume is a javascript library importing typescript? |
Eta uses Denoify, a build tool to convert Node TS to Deno TS, and it should work. A JS library importing TS shouldn't cause an error, by looking at the error logs it seems like it is coming from Pug and esm.sh. |
It's weird. in local it doesn't fail but in https://github.com/lumeland/test/ does. Maybe it's something related with Deno module cache. Pug worked fine until now, so I guess it's a kind of conflict between Pug and Eta. Anyway, I'll look tomorrow. Thanks! |
If it is a problem with Eta's Deno compat, the v2 proposal may solve that. |
Ok, finally I fixed this bug using the fork of Pug that I had created, instead import from esm.sh. Automatic conversion is great but not always works as it should be :) |
Hi @shadowtime2000
Trying to test Eta template engine, I'm getting this error:
https://github.com/lumeland/test/runs/1582719319#step:4:430
Any idea why this happens?
BTW, I've implemented a cache cleaner for file changes. (See https://github.com/lumeland/lume/blob/master/engines/eta.js#L18)
The text was updated successfully, but these errors were encountered: