question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get more robust/user friendly with preprocessors

See original GitHub issue

Is your feature request related to a problem? Please describe. Many people seem to have problems setting up preprocessors for the plugin - I guess partly because they install the extension and just expect it to work.

Describe the solution you’d like Maybe we can get more robust/user friendly by doing the following things:

  • If we don’t detect a svelte.config.js, we just do a best guess by using https://github.com/kaisermann/svelte-preprocess
  • If we detect that inside javascript “unexpected token”-errors occur, we enhance the error message with something like “have typed lang="typescript" in script? have you setup preprocessors correctly? see <somelink> for more info”

Describe alternatives you’ve considered Make docs clearer.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dummdidummcommented, May 14, 2020

It would mean adding it as a dependency and using it as the fallback preprocessor.

0reactions
benmccanncommented, May 14, 2020

I think just detecting if there are no preprocessors setup and telling them to add one with a helpful error message would be pretty helpful. It’d be a bit less magical and more explicit too, which I always think is nice

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 CSS Preprocessors Worth Considering - Envato
In this post we have have put together some of the best CSS preprocessors that are currently available, which do you use?
Read more >
CSS Preprocessors – Powerful Tools for Smarter Styling of ...
Preprocessors can enhance the functionality of CSS with assets like variables, operators, interpolations, functions, mixins to name a few. All ...
Read more >
Preprocessors - mdBook Documentation
A preprocessor is simply a bit of code which gets run immediately after the book is loaded and before it gets rendered, allowing...
Read more >
Using Preprocessors in the DataMapper - OL® Learn
Preprocessors are an extremely powerful feature of the DataMapper. They allow you to make changes to the input data file before anything else...
Read more >
SASS for CSS: Advance your frontend skills with ... - Educative.io
They are more stable than CSS. A preprocessor adds a certain level of stability and maturity through features like mixins, nesting, inheritance, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found