saberland/saber

Do you want to work on this issue?

You can request for a bounty in order to promote it!

webpack build gets stuck when using certain markdown syntax #265

egoist posted onGitHub

<!-- Please don't delete this template or we'll close your issue -->

<!-- Before creating an issue please make sure you are using the latest version of Saber. -->

<!-- Please confirm you will submit an issue. -->

<!-- Issues which contain questions or support requests will be closed. -->

<!-- (Update "[ ]" to "[x]" to check a box) -->

  • I confirm that this is an issue rather than a question.

<!-- Please ask questions via following several ways. -->

<!-- https://chat.saber.land/ -->

<!-- https://stackoverflow.com/questions/ask?tags=saberjs -->

Bug report

Version

v0.6.7

Steps to reproduce

Download this and follow the repro steps in README.md

It gets stuck when using $$\frac{A_1B_2}{C}$$ in markdown with @iktakahiro/markdown-it-katex

<!-- If you are reporting a bug that can ONLY be reproduced on your repository, PLEASE provide this repo link. That takes guessing work out of the way and saves us time. -->

<!-- You can also use this CodeSandbox starter https://bit.ly/2IlcpNF -->

What is expected?

webpack build succeeds.

What is actually happening?

webpack build gets stuck.

Other relevant information

  • Result of running saber -v:
  • Browser version (optional):
  • Is Saber a global or local install?
  • Which package manager did you use for the install?
  • Does this issue occur when all plugins are disabled?

@issuehunt has funded $100.00 to this issue.


posted by issuehunt-app[bot] over 5 years ago
info Using config file: saber-config.yml
success Compiled client successfully in 5m 9.3s!
info Available at http://localhost:3000
info 80.1 MB memory used

It's not that it gets stuck it just takes 5m 9.3s 🤣

posted by MarchWorks over 5 years ago

After tracking down this I ended up here https://github.com/vuejs/component-compiler-utils/blob/442d7b221d2075b2b53d8f6d4e1a4b4e6ab911e3/lib/compileTemplate.ts#L167-L178

that's why it takes so much time in dev mode. I don't know if this should be reported to prettier or not

posted by MarchWorks over 5 years ago
posted by MarchWorks over 5 years ago

A work around is to set prettify: false in vue-loader options

posted by MarchWorks over 5 years ago

This should be fixed in the next release, no ETA yet, probably in a couple of weeks, but I'll try to cut one before that

https://github.com/prettier/prettier/issues/4784#issuecomment-502602463

posted by lubien over 5 years ago

@egoist has cancelled @issuehunt's funding for this issue.(Cancelled amount: $100.00) See it on IssueHunt

posted by issuehunt-app[bot] over 5 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests

Recent activities

egoist cancelled funding 100.00 for  saberland/ saber#265
over 5 years ago
issuehunt funded 100.00 for saberland/saber# 265
over 5 years ago