我正在逐步重写一个应用程序,并将ReScript转换为ReScript。我已经在ReScript中实现了几个组件,但这是第一个组件,我使用ReactDOM.Style.t作为组件的属性。=> {}// Generated by ReScript, PLEASE EDIT WITH CARE
import *
错误: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: path/to/node_modules/rescript/lib/es6/curry.jsrequire() of /path/to/node_modules/rescript/lib/es6cjs, change the re
我是很新的记录,并试图了解事情是如何运作的。在我的情况下,我想从这样的变体类型中访问一个密钥。let person = Person({ age: 35,Js.log(person.name) // -> Error: The record field name can't be found.type personRecord = { age: int,