Git Product home page Git Product logo

Comments (13)

AngelLover2017 avatar AngelLover2017 commented on August 17, 2024 5

@vixper

`WARNING in ./node_modules/xlsx-style/xlsx.js
Module not found: Error: Can't resolve 'crypto' in 'D:\Web\node_modules\xlsx-style'

to solve this issue , i modified source code of 'xlsx-style/dist/cpexcel.js' from var cpt = require('./cpt' + 'able'); to var cpt = cptable

ERROR in ./node_modules/xlsx-style/xlsx.js
Module not found: Error: Can't resolve 'fs' in 'D:\Web\node_modules\xlsx-style'
ERROR in ./node_modules/xlsx-style/ods.js
Module not found: Error: Can't resolve 'fs' in 'D:\Web\node_modules\xlsx-style'`

for these two issues , i solved by adding node attribute to 'webpack.config.js',like this

node: {
  fs: "empty"
}

One passible reason here is the webpack treat 'fs' as package module but not node module

from ngx-excel-export.

kunj1234 avatar kunj1234 commented on August 17, 2024

same issue

from ngx-excel-export.

vixper avatar vixper commented on August 17, 2024

any solution?

from ngx-excel-export.

ShubhamJainSJ avatar ShubhamJainSJ commented on August 17, 2024

Facing same issue in Angular 6 project. Any solution for this?

from ngx-excel-export.

aminghe avatar aminghe commented on August 17, 2024

same issue.
Any solution for this?
@vixper @ShubhamJainSJ

from ngx-excel-export.

ShivaInnovation avatar ShivaInnovation commented on August 17, 2024

Same issue, any solution???

from ngx-excel-export.

aminghe avatar aminghe commented on August 17, 2024

@ShivaInnovation

Hi, I've solved my problem with another library.
I used exceljs.

https://github.com/guyonroche/exceljs#styles

Your code sample is this source
https://www.ngdevelop.tech/export-to-excel-in-angular-6/

good luck

from ngx-excel-export.

abhinavkumar985 avatar abhinavkumar985 commented on August 17, 2024

Facing the same issue with Angular 6, any solution ?

from ngx-excel-export.

sw-tracker avatar sw-tracker commented on August 17, 2024

Any solutions found? (aside from switching to a different module)

from ngx-excel-export.

ChloeQiuFeelGood avatar ChloeQiuFeelGood commented on August 17, 2024

same issue with Angular 7, any solution ?

from ngx-excel-export.

leventkalay avatar leventkalay commented on August 17, 2024

in my project webpack.config.js doesnt exist. how can i fix it ?

from ngx-excel-export.

Turing2048 avatar Turing2048 commented on August 17, 2024

在我的项目中 webpack.config.js 不存在。我该如何解决?

这里说的是自己项目的webpack.confog.js,而不是xlsx-style的,你可以自己在项目根目录新建一个webpack.config.js,让你在打包的时候自动正确识别fs。

from ngx-excel-export.

sebastiananea avatar sebastiananea commented on August 17, 2024

in my project webpack.config.js doesnt exist. how can i fix it ?

Did you find any solutions?

from ngx-excel-export.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.