cancel
Showing results for 
Search instead for 
Did you mean: 

MDK xlsx package doesn't work | Deploy Error

09-07-2022 11:24 AM
1493 views 2 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

m_aguilera_zorzo
Explorer
0 Likes

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.

Answers (0)