securedeveloper / react-data-export

Export dataset in react.
https://securedeveloper.github.io/react-data-export/
MIT License
179 stars 198 forks source link

Could not resolve "xlsx" vite js #177

Open RussHide opened 1 year ago

RussHide commented 1 year ago

image

node_modules/tempa-xlsx/ods.js:13:29: 13 │ catch(ee) { return require('xl' + 'sx').utils; } │ ~~~~ ╵ "./xlsx"

Use the relative path "./xlsx" to reference the file "node_modules/tempa-xlsx/xlsx.js". Without the leading "./", the path "xlsx" is being interpreted as a package path instead.

6:30:55 PM [vite] error while updating dependencies: Error: Build failed with 1 error: node_modules/tempa-xlsx/ods.js:13:29: ERROR: Could not resolve "xlsx" at failureErrorWithLog (C:\Users\Yone\Desktop\react-controlasistencia-uadec\node_modules\esbuild\lib\main.js:1566:15) at C:\Users\Yone\Desktop\react-controlasistencia-uadec\node_modules\esbuild\lib\main.js:1024:28 at runOnEndCallbacks (C:\Users\Yone\Desktop\react-controlasistencia-uadec\node_modules\esbuild\lib\main.js:1438:61) at buildResponseToResult (C:\Users\Yone\Desktop\react-controlasistencia-uadec\node_modules\esbuild\lib\main.js:1022:7) at C:\Users\Yone\Desktop\react-controlasistencia-uadec\node_modules\esbuild\lib\main.js:1134:14 at responseCallbacks. (C:\Users\Yone\Desktop\react-controlasistencia-uadec\node_modules\esbuild\lib\main.js:671:9) at handleIncomingPacket (C:\Users\Yone\Desktop\react-controlasistencia-uadec\node_modules\esbuild\lib\main.js:726:9) at Socket.readFromStdout (C:\Users\Yone\Desktop\react-controlasistencia-uadec\node_modules\esbuild\lib\main.js:647:7)

AnointingMax commented 8 months ago

Any resolution to this error?