Skip to content

Entry module is using named and default exports together #697

@davesnx

Description

@davesnx

While reading https://dev.to/psb/nextjs-the-app-router-and-reasonreact-2c0j I found a next issue specific that appears while using Melange.

The error message of this code is rather wrong which points to bsconfig stuff.

module Lola = {
  [@react.component]
  let make = () => {
    <div />;
  };
};

let default = Lola.make;

https://melange.re/unstable/playground/?language=Reason&code=bW9kdWxlIExvbGEgPSB7CiAgW0ByZWFjdC5jb21wb25lbnRdCiAgbGV0IG1ha2UgPSAoKSA9PiB7CiAgICA8ZGl2IC8%2BOwogIH07Cn07CgpsZXQgZGVmYXVsdCA9IExvbGEubWFrZTsK&live=off

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions