Skip to content

Does it work with TypeScript 3? #153

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

Closed
martpie opened this issue Aug 27, 2018 · 2 comments
Closed

Does it work with TypeScript 3? #153

martpie opened this issue Aug 27, 2018 · 2 comments

Comments

@martpie
Copy link

martpie commented Aug 27, 2018

Hello 👋

I have a Next.JS application using TypeScript and fork-ts-checker-webpack-plugin to do type-checking. I am not sure if this is a problem related to Next.JS or this module.

When using TypeScript 3, I got the following error when trying to start my app:

/Users/pierre/dev/project/src/frontend/packages/web/node_modules/fork-ts-checker-webpack-plugin/lib/service.js:22
        throw error;
        ^

TypeError: Cannot read property 'charCodeAt' of undefined
    at isLateBoundName (/Users/pierre/dev/project/src/frontend/packages/web/node_modules/typescript/lib/typescript.js:34687:25)
    at createUnionOrIntersectionProperty (/Users/pierre/dev/project/src/frontend/packages/web/node_modules/typescript/lib/typescript.js:35741:38)
    at getUnionOrIntersectionProperty (/Users/pierre/dev/project/src/frontend/packages/web/node_modules/typescript/lib/typescript.js:35807:28)
    at getPropertyOfUnionOrIntersectionType (/Users/pierre/dev/project/src/frontend/packages/web/node_modules/typescript/lib/typescript.js:35815:28)
    at getPropertyOfType (/Users/pierre/dev/project/src/frontend/packages/web/node_modules/typescript/lib/typescript.js:35844:24)
    at checkVariableLikeDeclaration (/Users/pierre/dev/project/src/frontend/packages/web/node_modules/typescript/lib/typescript.js:51326:36)
    at checkBindingElement (/Users/pierre/dev/project/src/frontend/packages/web/node_modules/typescript/lib/typescript.js:51434:20)
    at checkSourceElement (/Users/pierre/dev/project/src/frontend/packages/web/node_modules/typescript/lib/typescript.js:53432:28)
    at Object.forEach (/Users/pierre/dev/project/src/frontend/packages/web/node_modules/typescript/lib/typescript.js:209:30)
    at checkVariableLikeDeclaration (/Users/pierre/dev/project/src/frontend/packages/web/node_modules/typescript/lib/typescript.js:51338:20)

Do you have any idea what could cause this?

@martpie
Copy link
Author

martpie commented Aug 27, 2018

After doing some research, it appears that it may be related to the project configuration itself, I'll investigate.

@martpie
Copy link
Author

martpie commented Aug 27, 2018

It seems to be a problem with TypeScript itself, with a function return type which is an union type. I really don't get it.

Anyway, unrelated to this repo.

edit: found it: microsoft/TypeScript#26321

@martpie martpie closed this as completed Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant