Hi everyone,
I’m new on ReScript and I’m still learning on how everything works.
I’m contributing to web app that uses ReScript and I wanted to add module React TextArea Code Editor, however, when I added this module to package.json
and bsconfig.json
, I got stuck on this issue:
➜ op-onai-edu git:(code-completion) ✗ yarn run re:build
yarn run v1.22.17
$ rescript
Error: PfIcon__Example found in two directories: (app/javascript/packages/pf-icon/lib/ocaml, app/javascript/packages/pf-icon/src)
File names must be unique per project
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
➜ op-onai-edu git:(code-completion) ✗ yarn run re:watch
yarn run v1.22.17
$ rescript clean && rescript build -w
Error: /home/indicozy/Documents/Projects/oponai/op-onai-edu/node_modules/@uiw/react-textarea-code-editor/bsconfig.json: No such file or directory
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Is it because this module needs to support ReScript or am I doing something wrong on my side?