Home > front end >  Vue ejsexcel used in the front-end Excel export encountered problems
Vue ejsexcel used in the front-end Excel export encountered problems

Time:09-17

A recent report demand, need on the front page can according to the user submits the filter back a report, you need to add header, complex and requires first few lines join table name in the excel form, the applicant, time parameter, for a period of time found ejsexcel is more in line with expectations, can be directly to export by means of template injection data, modify the template style is simple, but after importing the project found that fs. ReadFileSync has always had a problem tip
 "TypeError: fs__WEBPACK_IMPORTED_MODULE_0__ readFileSync is not a function" 

What is the main reason? (fs introduced has a problem? Besides the ejsexcel what suggest?

CodePudding user response:

I also encountered this problem, the fs is the use of the node, the front end with no, temporarily no problem,,
  • Related