Skip to content
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

Greater than operator not working on if mixin on pug #806

Closed
paradis-A opened this issue Feb 7, 2021 · 2 comments
Closed

Greater than operator not working on if mixin on pug #806

paradis-A opened this issue Feb 7, 2021 · 2 comments
Labels
bug Something isn't working Fixed Fixed in master branch. Pending production release.

Comments

@paradis-A
Copy link

Describe the bug
Greater than operator not working on pug using +if()

To Reproduce
Followed Everything
$ npx degit sveltejs/template my-svelte-app $ cd my-svelte-app $ npm install -D svelte-preprocess $ npm install -D pug
svelte preproess bug

  • OS: Windows 10 x64
  • vscode 1.53.0
@paradis-A paradis-A added the bug Something isn't working label Feb 7, 2021
@jasonlyu123
Copy link
Member

jasonlyu123 commented Feb 8, 2021

We currently don't fully support pug. Maybe in the future, we could use the pug parser to transform the template for basic javascript features. But we might need some help, as non of the core maintainers of this repo uses pug.

But in this case, I think we can work around it by removing the '}' or '>' in the template. it's all recognized as text in our transformation. And these two characters is allowed in the text of svelte. But this won't fix the smaller than though.

@dummdidumm
Copy link
Member

This specific error should be fixed now. There may very well be other type/semantic errors though because we don't fully support pug at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed Fixed in master branch. Pending production release.
Projects
None yet
Development

No branches or pull requests

3 participants