gitbrent / xlsx-js-style

SheetJS Community Edition + Basic Cell Styles
https://gitbrent.github.io/xlsx-js-style/
Apache License 2.0
349 stars 56 forks source link

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

Closed texiontech closed 2 years ago

texiontech commented 2 years ago

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

duketide commented 2 years ago

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'

akanzari commented 2 years ago

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'

mephasor commented 2 years ago

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

gitbrent commented 2 years ago

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 ]==~==~==~==--------------------