You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a websocket handler that needs to use imported dependencies causes the server to crash when a ws message is received by the server with a ReferenceError: is not defined.
I suspect the error is caused by an eval() or a Function constructor using the relative path of the imported module.
Expected behavior/code
Using imported modules and constants on route handlers should work the same way it works on HTTP routes.
Environment
Node/npm version: Node 14.5.0/npm 6.14.5
OS: Debian
The text was updated successfully, but these errors were encountered:
Hi. see https://t.me/nanoexpress/18.
I am not maintaining this framework anymore, exactly i will add new features and quick bug fixes only for commercial users.
Bug Report
Is you/your team sponsoring this project
Minimal reproducible repo
https://github.com/kran6a/nanoexpress-bug-2
Current Behavior
Creating a websocket handler that needs to use imported dependencies causes the server to crash when a ws message is received by the server with a ReferenceError: is not defined.
I suspect the error is caused by an eval() or a Function constructor using the relative path of the imported module.
Expected behavior/code
Using imported modules and constants on route handlers should work the same way it works on HTTP routes.
Environment
The text was updated successfully, but these errors were encountered: