kanasimi / wikiapi

JavaScript MediaWiki API for node.js
https://kanasimi.github.io/wikiapi/
BSD 3-Clause "New" or "Revised" License
47 stars 5 forks source link

TypeError: CeL.run is not a function on Debian using Node v12.18.3 #19

Closed strefethen closed 3 years ago

strefethen commented 3 years ago

I'm not having much luck using this package on Debian 4.17.171-2 with Node version v12.18.3 and yarn v1.22.5. The package fails to load properly. I'm developing on macOS using Node v12.18.3 using yarn v1.22.5 on my dev machine and the package works just fine but when I install on Debian I'm seeing these errors:

I'm curious if you might have seen/heard of this?

TypeError: Cannot assign to read only property 'name' of function 'function env(name, value) {
if (!name)
     // return;
         return undefined;
     // typeof value !== 'undefi...<omitted>...    }'
 at Function.assign (<anonymous>)
 at Function._.reset_env (eval at <anonymous> (/node_modules/cejs/_for include/node.loader.js:79:2),
 at eval (eval at <anonymous> (/node_modules/cejs/_for include/node.loader.js:79:2), <anonymous>:4747:5)
 at eval (eval at <anonymous> (/node_modules/cejs/_for include/node.loader.js:79:2), <anonymous>:4751:3)

And CeL fails to load so the first dependent line to execute then fails.

TypeError: CeL.run is not a function
   at Object.<anonymous> (/node_modules/wikiapi/wikiapi.js:19:5)
   at Module._compile (internal/modules/cjs/loader.js:1137:30)