Skip to content
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

TypeError with typescript export class (2.21.0 and 2.21.1) #1814

Closed
daddyman opened this issue Jun 9, 2020 · 0 comments
Closed

TypeError with typescript export class (2.21.0 and 2.21.1) #1814

daddyman opened this issue Jun 9, 2020 · 0 comments

Comments

@daddyman
Copy link

daddyman commented Jun 9, 2020

After upgrading from 2.20.2 to 2.21.1 (2.21.0 also fails) I get this error during linting. The error does not occur if I revert back to 2.20.2 (all other packages the same).

> eslint -c .eslintrc.js --ext .ts src


Oops! Something went wrong! :(

ESLint: 7.2.0

TypeError: Cannot read property 'value' of null
Occurred while linting c:\dev\mob\webservices\src\helpers\auth-helper.ts:2
    at ExportNamedDeclaration (c:\dev\mob\webservices\node_modules\eslint-plugin-import\lib\rules\no-internal-modules.js:111:44)
    at c:\dev\mob\webservices\node_modules\eslint\lib\linter\safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (c:\dev\mob\webservices\node_modules\eslint\lib\linter\safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (c:\dev\mob\webservices\node_modules\eslint\lib\linter\node-event-generator.js:254:26)
    at NodeEventGenerator.applySelectors (c:\dev\mob\webservices\node_modules\eslint\lib\linter\node-event-generator.js:283:22)
    at NodeEventGenerator.enterNode (c:\dev\mob\webservices\node_modules\eslint\lib\linter\node-event-generator.js:297:14)
    at CodePathAnalyzer.enterNode (c:\dev\mob\webservices\node_modules\eslint\lib\linter\code-path-analysis\code-path-analyzer.js:635:23)
    at c:\dev\mob\webservices\node_modules\eslint\lib\linter\linter.js:949:32
    at Array.forEach (<anonymous>)

The code in auth-helper.ts starts with:

export class AuthHelper {	// This is line 2

    public static checkAuth(auth?: string): boolean {
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants