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.

Preprocessor dependencies are not tracked

See original GitHub issue

Describe the bug Suppose I have installed svelte-preprocess and sass. Here is my index.svelte file:

<style lang="scss" src="../app.scss"></style>

So when I run svelte-kit dev the dev server is launched. If I make changes to the index.svelte file, the server is reloaded but if I make changes to app.scss file, the server is not reloaded and no change occurs.

Expected behavior When I make changes to app.scss file, the output should be updated.

Information about your SvelteKit Installation:

Diagnostics
  • System: OS: Windows 10 10.0.19041 CPU: (4) x64 Intel® Core™ i5-6200U CPU @ 2.30GHz Memory: 2.70 GB / 7.80 GB
  • Binaries: Node: 14.16.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD npm: 7.6.3 - C:\Program Files\nodejs\npm.CMD
  • Browsers: Chrome: 81.0.4044.138 Edge: Spartan (44.19041.423.0), Chromium (89.0.774.68) Internet Explorer: 11.0.19041.1
  • npmPackages: @sveltejs/kit: next => 1.0.0-next.70 svelte: ^3.37.0 => 3.37.0 vite: ^2.1.5 => 2.1.5

Severity A serious bug for me as I cannot debug by scss styles.

Additional context If a repro is needed I can provide one.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
TheComputerMcommented, Apr 5, 2021

Yeah, thanks everyone.

0reactions
babichjacobcommented, Apr 5, 2021

I was able to reproduce this in a vite-plugin-svelte playground and the plugin does not register the dependencies of preprocess output with vite correctly. see sveltejs/vite-plugin-svelte#25

Think we should close this to keep tracking there only?

Read more comments on GitHub >

github_iconTop Results From Across the Web

cmake 3.5.1 fails to track dependencies on include files where ...
Unfortunately, cmake failed to track the dependencies when I use a macro. The source file is not recompiled when the include files specified ......
Read more >
Dependency tracking in Application Insights - Azure Monitor
Monitor dependency calls from your on-premises or Azure web application with Application Insights.
Read more >
Preprocessor Options (Using the GNU Compiler Collection ...
When used with -M or -MM , specifies a file to write the dependencies to. If no -MF switch is given the preprocessor...
Read more >
GNU autotools include file dependency tracking (.deps ...
Try writing an implicit ".cu.cc" rule for generating C++ files from the CUDA files. Automake should then be able to track the dependencies...
Read more >
How dependency tracking works - Knockout.js
If the evaluator doesn't access any obsevables, the computed observable will have no dependencies and won't ever need to call the evaluator function...
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