-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add uwebsockets.js #6506
add uwebsockets.js #6506
Conversation
It seems that the npm here does not support |
however @jim-king-2000, the author of |
Could you please check it with him again? If he insists to not be included, we have to close this PR. |
lets way about 10 days if no reaction and we will merge, but I'm sure he will :-) |
Sure.
That would be better. |
Any update? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When running pm2-runtime start app.js -i max
I have
(node:27) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
/usr/src/app/app.js:1
import { App } from 'uWebSockets.js';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1178:20)
at Module._compile (node:internal/modules/cjs/loader:1220:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at /usr/local/lib/node_modules/pm2/lib/ProcessContainer.js:304:25
at wrapper (/usr/local/lib/node_modules/pm2/node_modules/async/internal/once.js:12:16)
at next (/usr/local/lib/node_modules/pm2/node_modules/async/waterfall.js:96:20)
at /usr/local/lib/node_modules/pm2/node_modules/async/internal/onlyOnce.js:12:16
Change |
Why did it still fail? |
@waghanza Would you please take a look at it? What is the error message? |
(node:166) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
/usr/src/app/app.js:1
import { App } from "uWebSockets.js";
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1178:20)
at Module._compile (node:internal/modules/cjs/loader:1220:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at /usr/local/lib/node_modules/pm2/lib/ProcessContainer.js:304:25
at wrapper (/usr/local/lib/node_modules/pm2/node_modules/async/internal/once.js:12:16)
at next (/usr/local/lib/node_modules/pm2/node_modules/async/waterfall.js:96:20)
at /usr/local/lib/node_modules/pm2/node_modules/async/internal/onlyOnce.js:12:16 |
Success. What about the attitude of the author of |
We are going to include |
@waghanza Let's just do it. We could disable it if there is any concern from the author. |
I think adding C++ package is even more interesting than js |
Be my guest @cyrusmsk |
Maybe I could try to add |
I wanna add
uwebsockets.js
to the benchmarks since it defeats all of the other frameworks here.