question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'getEntryByPath' of undefined

See original GitHub issue

Expected Behaviour

Better feedback on what failed.

Actual Behaviour

Not enough information to ascertain where the issue is.

TypeError: Cannot read property 'getEntryByPath' of undefined
    at Object.fileExists (/Users/atrauzzi/Development/project/node_modules/typescript/lib/typescript.js:107655:39)
    at Object.fileExists (/Users/atrauzzi/Development/project/node_modules/typescript/lib/typescript.js:78971:791)
    at getDirectoryOrExtensionlessFileName (/Users/atrauzzi/Development/project/node_modules/typescript/lib/typescript.js:81877:26)
    at tryGetModuleNameAsNodeModule (/Users/atrauzzi/Development/project/node_modules/typescript/lib/typescript.js:81868:35)
    at getGlobalModuleSpecifier (/Users/atrauzzi/Development/project/node_modules/typescript/lib/typescript.js:81672:20)
    at /Users/atrauzzi/Development/project/node_modules/typescript/lib/typescript.js:81655:88
    at Object.mapDefined (/Users/atrauzzi/Development/project/node_modules/typescript/lib/typescript.js:2172:30)
    at Object.getModuleSpecifiers (/Users/atrauzzi/Development/project/node_modules/typescript/lib/typescript.js:81655:29)
    at getNameOfSymbolAsWritten (/Users/atrauzzi/Development/project/node_modules/typescript/lib/typescript.js:30239:81)
    at symbolToTypeNode (/Users/atrauzzi/Development/project/node_modules/typescript/lib/typescript.js:30009:32)

Steps to Reproduce the Problem

Run the local webpack development server.

Happy to answer any specific questions beyond the basic issue template. I apologize, this is a private repository and part of the issue here is that the error isn’t giving me enough information to create a subset/repro repository in the first place.

cc. https://github.com/Microsoft/TypeScript/issues/25047

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

5reactions
nathguencommented, Oct 25, 2018

Upgrading to typescript 3.x resolves this for me.

npm install --save-dev typescript@3
1reaction
atrauzzicommented, Jul 12, 2018

This seems to be acknowledged upstream, so I’ll close here. We can continue any relevant discussion here if it comes up and maybe reopen if it’s still an issue after TS 3.x

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'getEntryByPath' of undefined
I can't get styleguidist to compile with react-docgen-typescript . An error keeps on getting thrown: TypeError: Cannot read property ...
Read more >
TypeError: Cannot read property 'kind' of undefined at ...
This problem started to occur when updating my Angular 6 project to 7.x. I opened an issue on the angular-cli github repo but...
Read more >
TypeError: Cannot read property 'kind' of undefined at ... - Dirask
I have got following error during my TypeScript project compilation into single file: I run my project with: tsconfig.prod.json file looks following way:...
Read more >
Cannot read property 'name' of undefined, at Array.forEach
TypeError : Cannot read property 'name' of undefined, at Array.forEach. When I press the button to display the task pane, I am seeing...
Read more >
无法读取未定义的属性, 未捕获的类型错误 - 免费编程教程
抱歉,如果这已经被回答。我有一个Angular 服务……但是v9.2.9 抛出``` TypeError: Cannot read property 'getEntryByPath' of undefined ``` 根据microsoft/TypeScript# ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found