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.

Unused export property warning is on the wrong line when using the TypeScript pre-processor.

See original GitHub issue

Describe the bug export let statements of an unused property cause a warning. The warning is displayed on the line above the actual property for me.

To Reproduce

Set the script language to typescript (lang="ts" or type="text/typescript"). Declare some export property, do not use it anywhere.

Expected behavior

The warning is on the property not being used.

Screenshots

image

If the property is in the first line of the script:

image

System (please complete the following information):

  • OS: Windows 10, 64bit
  • IDE: VSCode
  • Plugin/Package: Svelte for VSCode

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
dummdidummcommented, Jan 26, 2021

Closing as these are problems related to svelte-preprocess. The “source map is not applied when I tell preprocess through its sourceMap-option”-problem is fixed in the latest version. The “extends-feature of tsconfig.json not supported” is tracked in https://github.com/sveltejs/svelte-preprocess/issues/300 .

1reaction
jasonlyu123commented, Aug 28, 2020

Yeah, I have a quick look at the source file of the svelte-preprocess. It looks like it doesn’t parse the extends. Thanks for the issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Suppress unused property warning in Typescript for individual ...
Is there a way to let my code compile with ts-node even if there is unused property warnings in one ...
Read more >
svelte-check - npm
svelte-check needs to know the whole project to do valid checks. Imagine you alter a component property export let foo to export let...
Read more >
PyCharm 181.4203.547 Release Notes | Knowledge Base
Feature PY‑20770 Support Python 3.6 asynchronous generators and comprehensions Feature PY‑21768 Semantic highlighting for Python Bug PY‑19573 Python console ‑ no output under OS X Bug...
Read more >
Configuring Jest
The configuration file should simply export an object: JavaScript; TypeScript. /** @type {import('jest').Config} */ const config = {
Read more >
Code Splitting - webpack
Prevent Duplication: Use Entry dependencies or SplitChunksPlugin to dedupe and split chunks. Dynamic Imports: Split code via inline function calls within ...
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