Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not found #78

Open
jgoodall628 opened this issue Jul 5, 2017 · 7 comments
Open

Module not found #78

jgoodall628 opened this issue Jul 5, 2017 · 7 comments

Comments

@jgoodall628
Copy link

Error in ./~/xlsx-style/dist/cpexcel.js
Module not found: ./cptable

@artemverbo
Copy link

Same issue when attempting to use via Webpack

@Khanji
Copy link

Khanji commented Jul 13, 2017

It seems that there is a bug in the xlsx-style/dist/cpexcel.js file.

(function(root, factory){ "use strict"; if(typeof cptable === "undefined") { if(typeof require !== "undefined"){ var cpt = require('cpt' + 'able'); <<--

The last line should be: var cpt = cptable;

This will fix your problem

You'll find this piece of code starting on line 803 in the mentioned file

@luwojtaszek
Copy link

In my Angular4 application I'm using:

  • xlsx - it provides typings,
  • xlsx-style => I'm using only write method to properly write cell styles.

I found that you can also fix this problem by replacing xlsx-style/dist/cpexcel.js with xlsx/dist/cpexcel.js file.

@VaskaDagamas
Copy link

VaskaDagamas commented Oct 23, 2017

@Khanji
Thank's on one error less,
may your know some about:
ERROR in ./~/xlsx-style/xlsx.js
Can't resolve 'fs' in '/home/vasil/workplace/CientApp_SplitCode/node_modules/xlsx-style'

ERROR in ./~/xlsx-style/ods.js
Can't resolve 'fs' in '/home/vasil/workplace/CientApp_SplitCode/node_modules/xlsx-style'

@maxxt
Copy link

maxxt commented Nov 20, 2017

Will this issue be fixed anytime soon?

@dstvishnu
Copy link

When this issue will be fixed and the package will be available in the npm package

@dbwcooper
Copy link

i meet this question

Failed to compile.

Error in ./~/xlsx-style/ods.js
Module not found: 'xlsx' in D:\dva-excel\node_modules\xlsx-style

@ ./~/xlsx-style/ods.js 13:21-41

so , in 13 line xlsx-style/ods.js ,
i found : catch(ee) { return require('xl' + 'sx').utils; }
change : catch(ee) { return require('./xlsx').utils; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants