marco76 / export-csv Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://www.npmjs.com/package/@molteni/export-csv
License: MIT License
Home Page: https://www.npmjs.com/package/@molteni/export-csv
License: MIT License
const aaaaaa = new ExportToCSV();
aaaaaa.exportAllToCSV([
{
workstationId: 1,
workstationName: '张网工位',
workshopname: '张网车间',
},
{
workstationId: 2,
workstationName: '老练工位',
workshopname: '张网车间'
},
{
workstationId: 3,
workstationName: '涂布工位',
workshopname: '张网车间'
}
], 'aaa.csv');
Heroku's log:
Resolving node version 8.11.3...
Downloading and installing node 8.11.3...
Bootstrapping npm ^6.4.1 (replacing 5.6.0)...
npm ^6.4.1 installed
-----> Restoring cache
Cached directories were not restored due to a change in version of node, npm, yarn or stack
Module installation may take longer for this build
-----> Building dependencies
Installing node modules (package.json + package-lock)
> [email protected] preinstall /tmp/build_01f08582c44ea81159fb12508700c85f/node_modules/node
> node installArchSpecificPackage
+ [email protected]
added 1 package in 1.842s
found 0 vulnerabilities
> [email protected] install /tmp/build_01f08582c44ea81159fb12508700c85f/node_modules/uws
> node-gyp rebuild > build_log.txt 2>&1 || exit 0
> [email protected] install /tmp/build_01f08582c44ea81159fb12508700c85f/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.1/linux-x64-64_binding.node
Download complete
Binary saved to /tmp/build_01f08582c44ea81159fb12508700c85f/node_modules/node-sass/vendor/linux-x64-64/binding.node
Caching binary to /tmp/npmcache.kEcTz/node-sass/4.9.1/linux-x64-64_binding.node
> [email protected] postinstall
/tmp/build_01f08582c44ea81159fb12508700c85f/node_modules/node-sass
> node scripts/build.js
Binary found at /tmp/build_01f08582c44ea81159fb12508700c85f/node_modules/node-sass/vendor/linux-x64-64/binding.node
Testing binary
Binary is fine
> [email protected] postinstall /tmp/build_01f08582c44ea81159fb12508700c85f
> ng build --prod
1
Date: 2018-12-09T01:20:25.032Z
Hash: f0080239d5e7fbcbfb9d
Time: 19164ms
chunk {scripts} scripts.1cd05d3e7f9761ff7fcc.js (scripts) 159 kB [rendered]
chunk {0} runtime.a66f828dca56eeb90e02.js (runtime) 1.05 kB [entry] [rendered]
chunk {1} styles.ad3c144cc2f2ff200734.css (styles) 219 kB [initial] [rendered]
chunk {2} polyfills.b139869b51dd6ac17b2a.js (polyfills) 130 bytes [initial] [rendered]
chunk {3} main.2f92531da6221cb4007f.js (main) 128 bytes [initial] [rendered]
ERROR in src/app/dashboard/dashboard/dashboard.component.ts(4,29): error TS2307: Cannot find
module '@molteni/export-csv'.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `ng build --prod`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.kEcTz/_logs/2018-12-09T01_20_25_449Z-debug.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
Some possible problems:
- A module may be missing from 'dependencies' in package.json
https://devcenter.heroku.com/articles/troubleshooting-node-deploys#ensure-you-aren-t-relying-on-untracked-dependencies
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push
> failed
>
It works very well Locally!
The dependencies is well declared in package.json
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.