cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MDK xlsx package doesn't work | Deploy Error

m_aguilera_zorzo
Explorer
0 Likes
1,441

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

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)