cwlsn / rinse-react

🚿 Rinse, React, repeat. A boilerplate to build a React component library.
https://rinsejs.io/
MIT License
158 stars 43 forks source link

dist not included v4.0.0 #31

Open kazuooooo opened 5 years ago

kazuooooo commented 5 years ago

Hi, thank you for making great repository and blog post :)

I tried to use rinse react with v4.0.0

and import button like below

import React from "react";
import { Button } from "rinse-react";

function App() {
  return (
    <div className="App">
      <header className="App-header">
        <Button>hello!</Button>
      </header>
    </div>
  );
}

export default App;

I got

Module not found: Can't resolve 'rinse-react' in xxx

error.

I noticed package json point out dist/index.js but not included. The poblem solved by adding dist/index.js file by hand. It looks need to add dist/index.js for v4.0.0.