" cpexcel not found " angular 2 application with systemJS #547
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#547
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?
Hi Guys,
I found error while exporting highcharts with Angular 2 application , It says cpexcel.js not found
My systemjs.config file looks as below :
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/',
'vendor:': 'externallibs/'
},
// map tells the System loader where to look for things
map: {
// For Excel export
'jszip': 'npm:xlsx/jszip.js',
'xlsx': 'npm:xlsx/xlsx.js',
'saveAs': 'vendor:FileSaver/FileSaver.js',
}
meta: {
'jszip': {
exports: 'JSZip',
},
'xlsx': {
deps: ['jszip']
},
'saveAs': {
exports: 'saveAs'
},
}
});
})(this);
Error says " cannot find cpexcel.js " , When I see into the xlsx.js line no 10: causing the issue
When I change
cptable = require('./dist/cpexcel');
To
cptable = System.import('./dist/cpexcel');
It works perfectly fine, But I don't want to make changes with my local code
because every time when I install using npm I need to make changes again and again
I need a revised version from git which I can use when it is required , Few may also face the same issue with highcharts export , angular 2 and systermJS as module loader.
If any other fix please suggest me
Thanks in advance !
i had same error
@Mani2693 @loongdefect we are not familiar with systemjs, but if you have a very small demo we can take a look.
Hi you. I use angular-cli and it use webpack load module. Your lib use
filesystem not working on it.
On Sat, Mar 11, 2017, 7:07 AM SheetJSDev notifications@github.com wrote:
@Mani2693 https://github.com/Mani2693 @loongdefect
https://github.com/loongdefect we are not familiar with systemjs, but if
you have a very small demo we can take a look.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SheetJS/js-xlsx/issues/547#issuecomment-285819030, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AH3p8FD13OPmMbEheI9pHLGjDa3NAOKXks5rkeWxgaJpZM4Lxg_l
.
@loongdefect you should not use
readFile
orwriteFile
in browser -- useread
andwrite
@Mani2693 The following systemjs config appears to work:
The
fs
andcrypto
really should be suppressed but it was not obvious how to suppress node modules in systemjs. We will be adding a systemjs demo shortly