Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99733

Allow auto import my React library on vscode

$
0
0

I'm trying to do a library of components for React and publish on npm using webpack and babel to compile to Es5.

Almost everything worked, but for some reason, the project that consumes this lib cant auto import their components

I have a project on github with the setup I used:

https://github.com/dattebayorob/react-loading

//webpack.config.js
https://github.com/dattebayorob/react-loading/blob/master/webpack.config.js
//.babelrc
https://github.com/dattebayorob/react-loading/blob/master/.babelrc
//package.json
https://github.com/dattebayorob/react-loading/blob/master/package.json

I'm expecting to import components from my lib with 'CTRL+space' when typing then

Now, I can import from my lib manualy with import { Component } from 'my-react-lib'


Viewing all articles
Browse latest Browse all 99733

Trending Articles



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