gitbrent/xlsx-js-style

Error: Cannot find module './dist/cpexcel.js'

Closed this issue · 4 comments

Node version : node:16-alpine3.15
Version : xlsx-js-style : "^1.10"

backend | Error: Cannot find module './dist/cpexcel.js'
backend | Require stack:
backend | - /usr/src/app/node_modules/xlsx-js-style/dist/xlsx.min.js

on version 1.0 it's work

I am experiencing a similar issue when attempting an ES6 import.

ERROR in ./node_modules/xlsx-js-style/dist/xlsx.min.js 9:120-148
Module not found: Error: Can't resolve './dist/cpexcel.js' in '\node_modules\xlsx-js-style\dist'

I have the same problem today
ERROR in ./node_modules/xlsx-js-style/dist/xlsx.min.js
Module not found: Error: Can't resolve './dist/cpexcel.js' in '/webapp/node_modules/xlsx-js-style/dist'

Same here, I believe the change in line 19 of this commit might be a typo.

reverting to version 1.0.0 of the npm package solves it for now

Thanks @texiontech et. al. - sorry about that, the 1.1.0 release completely goofed up dependencies.

This issue is fixed in Release v1.2.0.

There is also a new node demo for package testing going forward.

[iMac 20:51:53] ~/GitHub/xlsx-js-style/demos/node 
=> node demo.js
--------------------==~==~==~==[ STARTING DEMO... ]==~==~==~==--------------------
`XLSX.version` ......... = 0.18.5
`XLSX.style_version` ... = 1.2.0
--------------------==~==~==~==[ ...DEMO COMPLETE ]==~==~==~==--------------------