Tagged: Pipe, Typescript 2.2.x
- This topic has 23 replies, 7 voices, and was last updated 7 years, 5 months ago by Sten.
-
AuthorPosts
-
DanielParticipantHi
After updating to Typescript 2.2.2, all HTML templates using a pipe show an error marker. This applies to both, built-in and custom pipes, respectively.
@Typescript 2.2.x
When using a pipe the editor complains with the following error:Unable to resolve signature for pipe invocation.
[1]
Also, when hitting the F3 key to open the pipe’s definition, an internal error is raised. [2]@Typescript 2.1.6
Pipe resolution works as expected, meaning no error in the problems view and the pipe declaration can be opened.Best Regards,
Daniel
—-
[1] screenshot-1.png
[2] screenshot-2.pngAttachments:
You must be logged in to view attached files.
support-swapnaModeratorDaniel,
Thank you for raising this issue. I could replicate it at my end. I have filed a bug for the dev team and they are looking into it. We will keep you posted about the fix schedule.
Apologies for inconvenience caused.
–Swapna
MyEclipse Support
DanielParticipantThank you very much Swapna.
BrianParticipantIs there any update for this issue? I have been seeing these errors for the past month.
support-swapnaModeratorBrian,
The fix will be out with our next update to Webclipse 2017 CI which is due for release today.We will keep you posted when the release is out.
Sorry for inconvenience caused.
–Swapna
MyEclipse Support
support-swapnaModeratorDaniel/Brian,
Webclipse 2017 CI 5 is out. Please update to CI 5 from menu Help > Webclipse > Check for Updates and let us know if you see any issues.
–Swapna
MyEclipse Support
JanParticipantHad the same issue, can confirm it has been fixed in CL5.
Thanks guys/girls. 😉
support-swapnaModeratorJan,
Thank you for getting back to us. Glad that it works.
Please let us know if you see any issues.–Swapna
MyEclipse Support
StenParticipantHello,
i still see the “Unable to resolve signature for pipe invocation” marker. (see screenshot)
The update options says “no updates for webclipse found”best
StenAttachments:
You must be logged in to view attached files.
JanParticipantdid you do a Project – Clean after updating Webclipse?
This helped for me. Also make sure your Pipe is actually accessable / runnable by running an NG serve ignoring the error shown. -> does this work for you?Regards
Jan
StenParticipantThx Jan,
yes I tried to clean the project(s)! That did not help.
All my pipes are working as expected when testing with ng serve.
It is just an eclipse/webclipse problem.
JanParticipantHm ok, to bad 🙁
This is how I created my pipe, maybe you spot a difference there, even if your pipe works?
Maybe we can narrow down the parsing issue.@Pipe({ name: 'slackemoji' }) export class SlackemojiPipe implements PipeTransform {...}
registered using a provider:
providers: [SlackemojiPipe],
Cheers
Jan
support-piotrParticipantSten,
Can you provide full code of the pipe excluding method bodies? And please share the template part where you use the pipe. It looks like there is some typing issue in your definition.
Best regards,
Piotr Tomiak- This reply was modified 7 years, 5 months ago by support-piotr.
- This reply was modified 7 years, 5 months ago by support-piotr.
JanParticipantSure here you go, for me the pipe issue has been fixed however:
import { Pipe, PipeTransform } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; @Pipe({ name: 'slackemoji' }) export class SlackemojiPipe implements PipeTransform { constructor(private _sanitizer: DomSanitizer) { } transform(value: any, args: any[] = []) { return this._sanitizer.bypassSecurityTrustHtml(value); } escapeRegExp(str) { } replaceURLWithHTMLLinks(text) { } replaceMailToReference(text) { } replaceSlackReference(text) { } }
@Component({ selector: 'xxx', templateUrl: './question.component.html', styleUrls: ['./question.component.css'], providers: [SlackemojiPipe], })
using the pipe:
<div class="card card-block bg-faded qna-box"> <div class="message-container" [innerHTML]="wsElement.content.content | slackemoji"></div> </div>
Happy hunting 🙂
-
AuthorPosts