emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
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

throws the error:


TypeError: require(...).print is not a function
    at Object.<anonymous>
    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]
    at internal/main/run_main_module.js:17:47

* Information

M-! node -v

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	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:

  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 \


* 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


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).