You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<script>
R(function (require, module, exports) {
var index = require("./index");
exports.hello = "World!"
}, function (err, exports) {
if (err) {
console.error(err.statusText);
return;
}
console.log(exports.hello)
});
</script>
This one works well 👍
<script>
R(function (require, module, exports) {
var index = require("./index");
exports.exports.hello = "World!"; // Here it is attached to the good object.
}, function (err, exports) {
if (err) {
console.error(err.statusText);
return;
}
console.log(exports.hello)
});
</script>
Solutions :
Modify the readme OR Modify the source code.
The text was updated successfully, but these errors were encountered:
This sample in the readme does not works.
This one works well 👍
Solutions :
Modify the readme OR Modify the source code.
The text was updated successfully, but these errors were encountered: