on ‎2022 Sep 07 10:24 AM
Hello experts,
I'm trying to deploy an already created app that has been working for the last months.
Everytime we deploy it, we needed to install the xlsx library through "npm install xlsx" in the console.
Whenever I try to deploy now, this error pops up:
ModuleNotFoundError: Module not found: Error: Can't resolve '/extbin/generators/lib/node_modules/xlsx' in '/home/user/build.definitions/ZFSA_INT/Rules/CrearP',ModuleNotFoundError: Module not found: Error: Can't resolve '/extbin/generators/lib/node_modules/xlsx' in '/home/user/build.definitions/ZFSA_INT/Rules/Test'
undefined
xlsx is installed correctly:

Anyone knows how to fix this?
Thanks
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
The answer was to change the call to initialize the library, as stated in the library web:
https://www.npmjs.com/package/xlsx

Using var XLSX = requiere("xlsx") fixed the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.