Missing packages / unmet dependencies after upgrading to latest version

Wappler Version : latest
Operating System : mac
Server Model: nodejs
Database Type: postgres
Hosting Type: docker

2023-06-02T00_00_12_126Z-debug-0.log.rtf.zip (23.4 KB)

When I try a generic npm list - I also get an error, and a large list of npm packages that are classified as missing or with an unmet dependency:

npm ERR! code ELSPROBLEMS
npm ERR! missing: @socket.io/redis-adapter@^8.2.1, required by hireu_platform@1.6.0
npm ERR! missing: archiver@^5.3.0, required by hireu_platform@1.6.0
npm ERR! missing: argon2@^0.28.3, required by hireu_platform@1.6.0
npm ERR! missing: compression@^1.7.4, required by hireu_platform@1.6.0
npm ERR! missing: connect-redis@^7.1.0, required by hireu_platform@1.6.0
npm ERR! missing: connect-session-knex@^3.0.0, required by hireu_platform@1.6.0
npm ERR! missing: cookie-parser@^1.4.6, required by hireu_platform@1.6.0
npm ERR! missing: cors@^2.8.5, required by hireu_platform@1.6.0
npm ERR! missing: debug@^4.3.2, required by hireu_platform@1.6.0
npm ERR! missing: dotenv@^16.0.3, required by hireu_platform@1.6.0
npm ERR! missing: ejs@^3.1.6, required by hireu_platform@1.6.0
npm ERR! missing: express-end@0.0.8, required by hireu_platform@1.6.0
npm ERR! missing: express-fileupload@^1.2.1, required by hireu_platform@1.6.0
npm ERR! missing: express-session@^1.17.2, required by hireu_platform@1.6.0
npm ERR! missing: express@^4.17.1, required by hireu_platform@1.6.0
npm ERR! missing: follow-redirects@^1.14.5, required by hireu_platform@1.6.0
npm ERR! missing: fs-extra@^10.0.0, required by hireu_platform@1.6.0
npm ERR! missing: knex@^2.3.0, required by hireu_platform@1.6.0
npm ERR! missing: mime-types@^2.1.34, required by hireu_platform@1.6.0
npm ERR! missing: node-schedule@^2.0.0, required by hireu_platform@1.6.0
npm ERR! missing: nodemon@^2.0.15, required by hireu_platform@1.6.0
npm ERR! missing: pdfmake@^0.2.7, required by hireu_platform@1.6.0
npm ERR! missing: pg@^8.7.1, required by hireu_platform@1.6.0
npm ERR! missing: qs@^6.10.1, required by hireu_platform@1.6.0
npm ERR! missing: redis@^4.6.6, required by hireu_platform@1.6.0
npm ERR! missing: session-file-store@^1.5.0, required by hireu_platform@1.6.0
npm ERR! missing: socket.io@^4.6.1, required by hireu_platform@1.6.0
npm ERR! missing: unzipper@^0.10.11, required by hireu_platform@1.6.0
npm ERR! missing: uuid@^9.0.0, required by hireu_platform@1.6.0
hireu_platform@1.6.0 /Users/mattgibbs/Documents/Documents - Matt’s Mac mini/Development/WapplerProjects/hireu_platform
β”œβ”€β”€ UNMET DEPENDENCY @socket.io/redis-adapter@^8.2.1
β”œβ”€β”€ UNMET DEPENDENCY archiver@^5.3.0
β”œβ”€β”€ UNMET DEPENDENCY argon2@^0.28.3
β”œβ”€β”€ UNMET DEPENDENCY compression@^1.7.4
β”œβ”€β”€ UNMET DEPENDENCY connect-redis@^7.1.0
β”œβ”€β”€ UNMET DEPENDENCY connect-session-knex@^3.0.0
β”œβ”€β”€ UNMET DEPENDENCY cookie-parser@^1.4.6
β”œβ”€β”€ UNMET DEPENDENCY cors@^2.8.5
β”œβ”€β”€ UNMET DEPENDENCY debug@^4.3.2
β”œβ”€β”€ UNMET DEPENDENCY dotenv@^16.0.3
β”œβ”€β”€ UNMET DEPENDENCY ejs@^3.1.6
β”œβ”€β”€ UNMET DEPENDENCY express-end@0.0.8
β”œβ”€β”€ UNMET DEPENDENCY express-fileupload@^1.2.1
β”œβ”€β”€ UNMET DEPENDENCY express-session@^1.17.2
β”œβ”€β”€ UNMET DEPENDENCY express@^4.17.1
β”œβ”€β”€ UNMET DEPENDENCY follow-redirects@^1.14.5
β”œβ”€β”€ UNMET DEPENDENCY fs-extra@^10.0.0
β”œβ”€β”€ UNMET DEPENDENCY knex@^2.3.0
β”œβ”€β”€ UNMET DEPENDENCY mime-types@^2.1.34
β”œβ”€β”€ UNMET DEPENDENCY node-schedule@^2.0.0
β”œβ”€β”€ UNMET DEPENDENCY nodemon@^2.0.15
β”œβ”€β”€ UNMET DEPENDENCY pdfmake@^0.2.7
β”œβ”€β”€ UNMET DEPENDENCY pg@^8.7.1
β”œβ”€β”€ UNMET DEPENDENCY qs@^6.10.1
β”œβ”€β”€ UNMET DEPENDENCY redis@^4.6.6
β”œβ”€β”€ UNMET DEPENDENCY session-file-store@^1.5.0
β”œβ”€β”€ UNMET DEPENDENCY socket.io@^4.6.1
β”œβ”€β”€ UNMET DEPENDENCY unzipper@^0.10.11
└── UNMET DEPENDENCY uuid@^9.0.0

appreciate some help here pls @Teodor

Run npm i to install all the missing packages and then install the pdf package.

1 Like

Thanks for the comment @tbvgl - that was one of the first things I did to try and rectify the issue, unfortunately the issue remains.

I should note - the only significant changes I made was installing the latest version of Node onto my Mac, upgrading to the latest Wappler and attempting to install a new package via npm

Bump.

Are you an the development target? And that is a docker target?

You just need to hit the deploy again or choose the node packages install from the bottom toolbar.

Yep, development target.

I’ve installed, and re-installed all node packages multiple times, I’ve redeployed multiple time, I get the same errors.

What else can I try to solve this as it’s a little unnerving.

For no lack of doubt here I have again done the following tasks, and receive the same error;

  1. Close Wappler fully
  2. Restarted Docker
  3. Restarted Wappler
  4. Re-Installed Node Packages from the UI (this completes successfully)
  5. Deploy (this completes successfully)
  6. I then in the terminal run β€˜npm list’
  7. I get the same errors for everything.

Bump again @George

How do I get support here Wappler team?

I’m trying to build 3 modules, that I’ll happily share with the community (JSON > plain text, pdfmake, pdf parsing, chatgpt) but I am unable to get any support regarding the npm issue above.

This is a huge problem with Wappler, not the product, but if the community, or team doesn’t provide support we are stuck and have no where to go. Right now, development of this area of the product stops as we have no way to solve the issue without perhaps starting a brand new project and copying everything over.

If it helps at all, the Node and NPM versions I have are:

NPM = 9.6.6
Node = 20.2.0

I still have the existing issue with ERR and UNMET DEPENDENCY for all packages.

Yet, I have just tried installing another package this morning. It appears to install, but then is not included in the package.json file. I add it there manually with the latest version of that package from npm’s website.

Trying to run the extension that needs this file resulted in two different errors:

The first one:
Cannot find module 'json-stringify-pretty-compact'\nRequire stack:\n- /opt/node_app/extensions/server_connect/modules/JsonToText.js\n- /opt/node_app/lib/core/app.js\n- /opt/node_app/lib/core/middleware.js\n- /opt/node_app/lib/setup/routes.js\n- /opt/node_app/lib/server.js\n- /opt/node_app/index.js

The second one:
require() of ES Module /opt/node_app/node_modules/json-stringify-pretty-compact/index.js from /opt/node_app/extensions/server_connect/modules/JsonToText.js not supported.\nInstead change the require of index.js in /opt/node_app/extensions/server_connect/modules/JsonToText.js to a dynamic import() which is available in all CommonJS modules.

The second appeared after I did another install from the UI of all node packages, and then deployed again.

Noting if I do NPM List I still get the same list of errors:

I also provided the error log in the original post.

I am here ready to provide any additional feedback, or code you need to help solve this. I can create vids and send privately if that helps even more, or we can screen share on a call.

Sorry for the tags, but we need some support. @George @Teodor

Fixed this myself.

It was as I thought and mentioned above, the node version I had installed as Argon does not support anything beyond v14 at this point.