angular2 app cpexcel not found #453
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#453
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
getting a 404 error for cpexcel.js and fs.js in my Anuglar2 app using the Angular2 cli. I can see cpexcel in my vendor folder but for some reason its not finding it. I downloaded the library through npm
I got the same error, have not found a work around yet :/
I've been using the library by including the cdn files in index.html
I am having the same issue. I am using Typescript and I really liked having the typings available, but this is not possible to use because importing the typings will automatically import the library. Very annoying to jump through all these hoops when most libraries are very easy to include into a an A2 project.
Here is how I solved:
In angular-cli.json, I added the following:
Then I copied the typings index.ds.t (from
@types/xlsx
) file contents into my project.From here, I was able to use by importing the following:
Then here is an example function from one of my Angular 2 services to create a worksheet:
The current recommendation is to use the minified files in the dist directory. We will be adding a demo shortly
@paustint would it be easier to split off the definitions to something outside the module? I think there are DT defs but I cannot speak to the quality