Help with typescript module resolution
See original GitHub issueThis is a help request.
I’m working on project where I’m using Typescript for the entire app (not just the front end).
When I attempt import { app } from 'electron'
, typescript claims not to find the electron module, which is not installed by the electron-forge init
command. I can probably fix this by pointing “paths” under “compilerOptions” in my tsconfig file to another module in my node_modules folder, but I can’t find the correct one.
I would appreciate some help.
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Common TypeScript module problems and how to solve them
Enabling the compiler module resolution tracing in TypeScript can provide insight in diagnosing and solving problems.
Read more >Typescript module resolution not working - Stack Overflow
What is your builder ? · You could provide --traceResolution to typescript compiler in order to see why your module is not resolved....
Read more >Configuring Module Resolution On Typescript and Jest
Configuring Module Resolution On Typescript and Jest · Step 1: Setting up a basic service. · Step 2: Configuring path resolution on tsconfig.js...
Read more >"moduleResolution": "node" usage and absolute/relative imports
node module resolution mimics the way how node looks for modules in runtime (resolution algorithm can be found here). In your case name...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s not a bug, the reason that it’s not being hoisted is that both
electron-prebuilt-compile
andelectron
both define a binaryelectron
. We probably need to copy electron.d.tsJust installed and tried yarn… It just worked.