framerx-build-system icon indicating copy to clipboard operation
framerx-build-system copied to clipboard

Trying to add a component to demo code fail (not added to build)

Open denisflorkin opened this issue 7 years ago • 1 comments

First thx, this project really has me exited, it'd be great to share "codebase" between engineers and designers.

Repro case

steps:

  1. git clone
  2. yarn
  3. yarn build
  4. add component
  5. build (build 'succeed' but component is not found) image

yarn build output:

screen shot 2018-09-22 at 13 28 19

I am expecting, in lib folder after building, to see a new folder (Text) appear, with a Title.js file in it. What am I missing, is Typescript required ? Are there more step than "just" importing the compo in the index.ts at the root of the project for the build job to register the new compo ?

denisflorkin avatar Sep 22 '18 11:09 denisflorkin

I'm running into a similar issue. When I run yarn build my components seem to propagate correctly into ./lib & ./src.But what I'm seeing is something that prevents multiple components from being added. If I add a custom Text component and delete Button from the root level index.ts, my Text component works fine but as soon as I add another component in the mix, that new component fails to render correctly.

tcasey avatar Sep 26 '18 20:09 tcasey