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.

Filter diagnostics of certain error codes

See original GitHub issue

In our project, we use require to load all components. This works, and the app runs fine.

Our app uses string interpolation for some reason - however it is valid code and does compile properly. As a result, we shouldn’t receive this error. We also receive this error if we remove the string interpolation.

Here is an example:

@Component({
    selector: 'project-review-dialog',
    styles: [`${require('./project-review-dialog.component.css')}`],
    template: `${require('./project-review-dialog.component.html')}`
})

Thus, we get this error:

image


Note: I have seen the other tickets that have this issue. All of them provided no solution.

I am hoping you might have a solution for this (without forcing us to change any code)

Thanks.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kevinmallinsonflynncommented, Apr 1, 2021

@kyliau I am new to this app, but i’ve been told it was done this way to facilitate the migration from AngularJS to Angular2+ We are currently running a hybrid app with mixed components from AngularJS and 2+.

I understand this is non-standard how we are currently specifying template - in that case, is there any way there could be a setting which would allow us to disable this rule?

0reactions
ikemtzcommented, Jun 25, 2021

I’m in a similar boat, I have a collection of base/abstract component classes that now require angular attributes (component/directive, etc.). Code compiles fine, but the error messages can be a PITA. Similar to other project types, there’s should be a way of disabling specific warning/error condition codes. Something similar to this:

  "angular.log": "verbose",
  "angular.ignoreErrorCodes": "-99934;ab123;-888",
Read more comments on GitHub >

github_iconTop Results From Across the Web

AS, S.L.U. DPF most common Diagnostic Trouble Codes
We offer below a list containing the most common DTC about Diesel Particulate. Filters (DPF), including their description and some potential causes for...
Read more >
Fault and error handling filters - Axway Documentation Portal
The Generic Error filter examines the incoming message and infers the type of message to be returned (for example, JSON or SOAP). You...
Read more >
Diagnostic Trouble Codes - What They Mean & How to Fix Them
Your vehicle's on-board diagnostic system stores trouble codes when it detects issues to make diagnosing problems easier. Learn what these codes mean.
Read more >
Identify and diagnose issues in Azure Virtual Desktop (classic)
Azure Virtual Desktop offers a diagnostics feature that allows the administrator to identify issues through a single interface.
Read more >
A Guide to Understanding DTC Codes - Samsara
A DTC, short for Diagnostic Trouble Code, is a code used to diagnose malfunctions ... DTCs are also called engine vehicle fault codes...
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