demoon icon indicating copy to clipboard operation
demoon copied to clipboard

express example not working

Open gittyup2018 opened this issue 2 years ago • 0 comments

Hi,

I just found out about this as someone who loves Lua and node's convenience I got really excited about this project so decided to test it, but for some reason when express is required it is converted to a function instead of userdata like the other modules:

local express = require('express'); local http=require('http'); local ws=require('ws');

print(type(express)); -- function print(type(http)); -- userdata print(type(ws)); -- userdata

Why is that? Is it module specific or certain kind of modules it's not compatible with? or is there a simple work around/shim?

Update: After playing around with this for several hours, I found

new() not working -- so new eventEmitter() can't be created module.exports missing split() and toString() and maybe other string functions missing? I stopped testing it after that.

gittyup2018 avatar Sep 11 '23 06:09 gittyup2018