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
/app/node_modules/whatwg-url/dist/encoding.js:2
const utf8Encoder = new TextEncoder();
^
ReferenceError: TextEncoder is not defined
at Object.<anonymous> (/app/node_modules/whatwg-url/dist/encoding.js:2:21)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/app/node_modules/whatwg-url/dist/url-state-machine.js:5:34)
at Module._compile (internal/modules/cjs/loader.js:778:30)
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
I saw that issue but I could not answer in the same thread to clarify that it is not solved with an update or changing the framework, that's why I had to make a new thread.
I resolve the problem, i have installed two version of node but one from apt and other from n package manager, but in the package.json i declared start scripts as: "start": "/usr/bin/node index.js":
$ which nodejs
/usr/bin/nodejs
$ which node
/usr/local/bin/node
$ nodejs -v
v10.19.0
$ node -v
v14.17.5
My script call /usr/bin/node but it is referenced to /usr/bin/nodejs. Works uninstalling nodejs from apt using apt remove nodejs and change full path to relative path, like as "start": "node index.js". Now works fine :D
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
after install mongoose show me a error
If the current behavior is a bug, please provide the steps to reproduce.
in a clean installation run the following commands
What is the expected behavior?
show the error
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
The text was updated successfully, but these errors were encountered: