Undefined method encode !!

Open
#44 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, ruby
Domain
tooling

Research direction

Start by reproducing the shown ExecJS.compile(source) call with execjs 2.7.0 and inspect the encode definition in the execjs library. Determine why encode is unavailable for the object involved; done means identifying a reproducible cause and documenting or resolving the failure path.

Written by the indexing model from the issue text.

Description

2.3.0 :004 > context = ExecJS.compile(source)
NoMethodError: undefined method `encode' for #< ....

Hi guys I am using execjs 2.7.0 to compile a npm library. I am getting this error. The JavaScript code is pretty simple. Encode is defined in the execjs lib any ideas why this is happening ?

Dominant language
Ruby
Stars
578
Forks
286
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rails/execjs

All issues in rails/execjs

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.