Better feedback on what failed.
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)
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.
To add some info, I am encountering this after I tried to get declarations output using
"declaration": true,
in my tsconfig.json.
Sorry, hadn't traced through the cc's issue. More details are present there, so I won't paste my stack trace as it would just be noise at this point. Sadly it looks like we have to wait for a TypeScript version bump.
I have the same problem when using import { WithStyles, withStyles } from '@material-ui/core';. Did you find already a workaround or solution? Using "declaration": trueis not an option for me.
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
Upgrading to typescript 3.x resolves this for me.
npm install --save-dev typescript@3
Most helpful comment
Upgrading to typescript
3.xresolves this for me.