-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
createStringLiteral is not a function in InlineHtmlStripStylesTransformer #272
Comments
Can you tell us what TypeScript version you are using? Also can you try the following in a terminal inside your project: run node in tty, require $ node
> require('typescript').createStringLiteral('test-literal') |
Just checked and saw the To facilitate backwards-compatibility we have to call the more generic A workaround could look like this: function createStringLiteralPolyfill(text: string) {
const node = createNode(ts.SyntaxKind.StringLiteral, -1, -1);
node.flags |= NodeFlags.Synthesized;
node.text = text;
return node;
} Could totally go into #261 (taken from If you use Angular 5 (or lower), you might not be able to use TypeScript v2.9.
|
thanks, upgrading typescript to v3 fixed the issue |
Hi, whenever I call
compileComponents()
orTestBed.createComponent
I am getting this error inInlineHtmlStripStylesTransformer
I already have in the jest.config.js
and having this in the component test file
The text was updated successfully, but these errors were encountered: