-
-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
" cpexcel not found " angular 2 application with systemJS #547
Comments
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
<#547 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AH3p8FD13OPmMbEheI9pHLGjDa3NAOKXks5rkeWxgaJpZM4Lxg_l>
.
|
@loongdefect you should not use |
@Mani2693 The following systemjs config appears to work: SystemJS.config({
paths: {
'npm:': '/usr/local/lib/node_modules/'
},
map: {
'xlsx': 'npm:xlsx/xlsx.js',
'fs': '@node/fs',
'crypto': '@node/fs'
}
}); The |
closes SheetJS#447 h/t @channara closes SheetJS#453 h/t @Adtiv @paustint closes SheetJS#538 h/t @hsbilgen closes SheetJS#547 h/t @Mani2693
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 !
The text was updated successfully, but these errors were encountered: