Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Unable to import .js file in RN Typescript project

$
0
0

I have a file called Http.js in a module:

export default class Http {    //stuff}

I can access this class from a typescript project as follows:

import Http from 'myproject.core/services/Http';

I recently published the module containing this class to npm and after installing it in the same typescript project, i can nolonger access this class.

Is there a way i should be doing things to make this class accessible if published via npm?


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>