Node require resolving Typescript file instead of JS
I'm having an issue where node_modules that have a Typescript file in are being resolved instead of the Javascript file. This is causing the inspector to error with 'Module not installed'.
To test, install either moment or axios (both well known).
const axios = require('axios');
The inspector will error..
Press cmd + b on it and you can see it's resolving the .ts file instead of the javascript file.
Is there anything I can change to stop this?
Thanks
Please sign in to leave a comment.
Please vote for https://youtrack.jetbrains.com/issue/WEB-25849 to be notified on any progress with it
Thanks!