emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug: [ob-js] error: require(...).print is not a function [9.3 (release_9


From: Xu Chunyang
Subject: Bug: [ob-js] error: require(...).print is not a function [9.3 (release_9.3 @ /Users/xcy/src/emacs-mac/lisp/org/)]
Date: Wed, 2 Dec 2020 15:42:58 +0800

* The issue

ob-js does not work for me, e.g.,

#+begin_src js
1 + 2
#+end_src

throws the error:

/private/var/folders/7f/s191h4q97p90374yw15ssrs00000gn/T/babel-gBvsRp/js-script-zTHHhe:1
require('sys').print(require('sys').inspect(function(){
               ^

TypeError: require(...).print is not a function
    at Object.<anonymous>
(/private/var/folders/7f/s191h4q97p90374yw15ssrs00000gn/T/babel-gBvsRp/js-script-zTHHhe:1:16)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47

* Information

M-! node -v
v14.15.0

Emacs  : GNU Emacs 27.1 (build 2, x86_64-apple-darwin19.6.0, Carbon
Version 162 AppKit 1894.6)
 of 2020-11-11
Package: Org mode version 9.3 (release_9.3 @ /Users/xcy/src/emacs-mac/lisp/org/)

* Another issue: What's SBCL in the commentary?

;;; Commentary:

;; Now working with SBCL for both session and external evaluation.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]