vscode-angular2-files icon indicating copy to clipboard operation
vscode-angular2-files copied to clipboard

First Pipe added causes issues

Open martingraham opened this issue 4 years ago • 0 comments

This may be 2 separate things. V 1.64

  1. Is it adding Pipes to the right place? It adds mine to declarations in app-routing.module.ts rather than app.module.ts. I seem to need to add the pipe to both declarations and providers in app.module.ts instead to get it to work.

  2. This I'm more confident is a little bug. When it adds a Pipe to app-routing/app.module.ts, if there is no existing declarations property, it makes the declarations property, but wraps the Pipe name in quotes. e.g. If I add two pipes, say Wrapper and Test, one after the other and *.module.ts has no declarations property to start with, I get:

    declarations: [ "WrapperPipe", TestPipe ]

"WrapperPipe" then flags as an error in typescript

martingraham avatar Sep 24 '20 15:09 martingraham