Facing issue while upgrading to the new rescript beta release

Thanks for your help :slight_smile:

@moondaddi @yawaramin I was working on upgrading rescript to the beta release. The compiler is working fine but the webpack build is showing this issue.

Issue
> ERROR in ./node_modules/rescript/lib/es6/char.js 71:15-41

export ‘bytes_to_string’ (imported as ‘Caml_bytes’) was not found in ‘./caml_bytes.js’ (possible exports: bytes_compare, bytes_equal, bytes_greaterequal, bytes_greaterthan, bytes_lessequal, bytes_lessthan, create, get, set)
@ ./node_modules/rescript/lib/es6/bytes.js 4:0-34 460:13-33 464:13-33 477:16-36 481:16-36
@ ./node_modules/rescript/lib/es6/string.js 4:0-36 11:9-31 11:32-42 15:9-31 15:32-41 15:42-64 35:9-31 35:32-41 35:45-67 39:9-31 39:32-42 39:46-68 54:11-33 54:34-44 54:45-67 84:11-33 84:34-47 84:48-70 262:9-31 262:32-53 262:54-76 266:9-31 266:32-53 266:54-76 270:9-31 270:32-54 270:55-77 274:9-31 274:32-56 274:57-79 304:11-28
@ ./node_modules/catalyst/src/utils/UrlUtils.bs.js 4:0-64 43:11-26
@ ./src/routing/RouteManager.bs.js 3:0-90 33:40-70
@ ./src/App.bs.js 7:0-73 11:36-82
@ ./src/Home.bs.js 4:0-47 11:52-72

Find the versions being used below, for your reference,
"@rescript/std": "^10.0.0-beta.3",
"rescript": "^10.0.0-beta.3",

Can you please help with this?

Already fixed in master.

1 Like