question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tree-shakable xlsx with angular 7

See original GitHub issue

Hi,

I want to implement tree-shakable this library with angular 7, is there any possible way? since the cpexcel.js & xlsx.js is much larger than my app even with ng build --prod.

currently i had tried but it showing error “json_to_sheet” is undefined.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
fchiumeocommented, Sep 5, 2019
import * as XLSX from 'xlsx/dist/xlsx.mini.min';
2reactions
SheetJSDevcommented, Aug 5, 2019

Thanks for looking into this! We tested in a direct script tag injection (http://sheetjs.com/demos/tablemini) but not in a bundle setup 😦 it’ll be corrected in the next release

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Import and Export Excel XLSX Using Angular
Here are the steps to import and export Excel spreadsheets in Angular: Install the SpreadJS component in your application; Instantiate the ...
Read more >
How to use useClass with Tree Shakable Services in Angular
By default, Angular services are tree shakable, which means if the application does not use them, they are not part of the final...
Read more >
Exporting an Excel file in Angular | by Madhava Kumar Ippili
Today I will show you the way to export a xlsx file from angular6. Environment setup: Node version 8. Angular CLI 6. Angular...
Read more >
Can't get image to show in production release in Angular 5 ...
I have an image that shows up on the main page of my Angular ... But for production builds, leave the tree-shakable ones...
Read more >
Generate And Download Excel File In Angular 7
npm install xlsx --save. Create a service named excel-services.service.ts file for the operation using the terminal.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found