Skip to content

TypeError: ts.isStringLiteralLike is not a function #669

@82antu

Description

@82antu

Hi,

I just update right now from 4.3.0 to 4.4.0,...and:

TypeError: ts.isStringLiteralLike is not a function
    at SelectorValidatorWalker.validateProperty (/home/one/master/hfw-core/node_modules/codelyzer/selectorNameBase.js:136:19)
    at /home/one/master/hfw-core/node_modules/codelyzer/selectorNameBase.js:111:85
    at Array.filter (<anonymous>)
    at SelectorValidatorWalker.validateSelector (/home/one/master/hfw-core/node_modules/codelyzer/selectorNameBase.js:111:14)
    at SelectorValidatorWalker.validateDecorator (/home/one/master/hfw-core/node_modules/codelyzer/selectorNameBase.js:102:18)
    at Array.forEach (<anonymous>)
    at SelectorValidatorWalker.visitClassDeclaration (/home/one/master/hfw-core/node_modules/codelyzer/selectorNameBase.js:95:45)
    at SelectorValidatorWalker.SyntaxWalker.visitNode (/home/one/master/hfw-core/node_modules/tslint/lib/language/walker/syntaxWalker.js:314:22)
    at /home/one/master/hfw-core/node_modules/tslint/lib/language/walker/syntaxWalker.js:535:63
    at visitEachNode (/home/one/master/hfw-core/node_modules/typescript/lib/typescript.js:15956:30)
TypeError: ts.isStringLiteralLike is not a function
    at Object.exports.isSimpleTemplateString (/home/one/master/hfw-core/node_modules/codelyzer/util/utils.js:5:15)
    at /home/one/master/hfw-core/node_modules/codelyzer/util/astQuery.js:33:57
    at /home/one/master/hfw-core/node_modules/codelyzer/util/function.js:20:59
    at Maybe.bind (/home/one/master/hfw-core/node_modules/codelyzer/util/function.js:17:54)
    at Maybe.fmap (/home/one/master/hfw-core/node_modules/codelyzer/util/function.js:20:21)
    at Object.getStringInitializerFromProperty (/home/one/master/hfw-core/node_modules/codelyzer/util/astQuery.js:33:10)
    at /home/one/master/hfw-core/node_modules/codelyzer/angular/metadataReader.js:42:55
    at Maybe.bind (/home/one/master/hfw-core/node_modules/codelyzer/util/function.js:17:54)
    at MetadataReader.readDirectiveMetadata (/home/one/master/hfw-core/node_modules/codelyzer/angular/metadataReader.js:42:14)
    at MetadataReader.readComponentMetadata (/home/one/master/hfw-core/node_modules/codelyzer/angular/metadataReader.js:49:38)

Any help is appreciate.

thank in advance

Activity

LukasKlement

LukasKlement commented on Jun 23, 2018

@LukasKlement

I'm experiencing the same issue, downgrading to version 4.3.0 fixes it. I'm using typescript@2.7.2

added 2 commits that reference this issue on Jun 23, 2018
c68b0f7
2f23d77
added a commit that references this issue on Jun 24, 2018
d922dcb
mgechev

mgechev commented on Jun 24, 2018

@mgechev
Owner

Fixed in 4.4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mgechev@LukasKlement@82antu

        Issue actions

          TypeError: ts.isStringLiteralLike is not a function · Issue #669 · mgechev/codelyzer