Skip to content

Toplevel expression is expected to have unit type #21

Description

@logandeancall

I installed this via https://github.com/draftbit/bs-storybook to workaround #13. I am only attempting to write the basic story example when running into this error.

  3let _module = %bs.raw("module")
  45storiesOf("My First Reason Story", _module)->add("Chapter I", () =>
  6 │   <span> {React.string("Hello bs-storybook!")} </span>
  7 │ )
  
  Toplevel expression is expected to have unit type.
  
FAILED: cannot make progress due to previous errors.
>>>> Finish compiling(exit: 1)

The word add on line 5 is what's highlighted in the error by the ReScript compiler

Using "bs-platform": "^8.4.2",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions