react-component-library icon indicating copy to clipboard operation
react-component-library copied to clipboard

Config for jsx

Open appleneilAM opened this issue 4 years ago • 1 comments

Hi Harvey,

I'm trying to follow your instructions but for .jsx files. When I run npm run build I get the following error

src/index.js → build/index.js, build/index.es.js...
[!] Error: Could not resolve './TestComponent/TestComponent' from src\index.js

Do you have any ideas?

appleneilAM avatar Oct 26 '21 15:10 appleneilAM

Did you add it to src/index.ts?

e.g.

import { TestComponent } from './TestComponent/TestComponent';

export { TestComponent };

pchr-srf avatar Mar 29 '22 09:03 pchr-srf