From: Xu Chunyang <xuchunyang56@gmail.com>
To: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <CABCqdB=6zaZ36UQeZRqJvgsfSGJVK9YSgs33QS_LfboLVWVrdg@mail.gmail.com> (raw)
* 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.
next reply other threads:[~2020-12-04 13:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-02 7:42 Xu Chunyang [this message]
2020-12-05 17:21 ` Bug: [ob-js] error: require(...).print is not a function [9.3 (release_9.3 @ /Users/xcy/src/emacs-mac/lisp/org/)] edwargix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABCqdB=6zaZ36UQeZRqJvgsfSGJVK9YSgs33QS_LfboLVWVrdg@mail.gmail.com' \
--to=xuchunyang56@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).