0

我正在尝试解析本地 CSV 文件,以及 Meteor 引导程序中的解析过程

    var csvStore = new FS.Store.FileSystem("csv", {
        path: "countrycode.csv", //optional, default is "/cfs/files" path within app container
        // transformWrite: myTransformWriteFunction, //optional
        // transformRead: myTransformReadFunction, //optional
        // maxTries: 1 //optional, default 5
    });

    var Csv = new FS.Collection("csv", {
        stores: [csvStore]
    });
    Papa.parse(Csv, {
        complete: function(results) {
            console.log("Finished:", results.data);
        }
    });

错误信息

=> Exited with code: 8
W20151220-11:33:05.127(8)? (STDERR)           
W20151220-11:33:05.130(8)? (STDERR) /Users/apple/.meteor/packages/meteor-tool/.1.1.10.1b51q9m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20151220-11:33:05.130(8)? (STDERR)                         throw(ex);
W20151220-11:33:05.131(8)? (STDERR)                               ^
W20151220-11:33:05.172(8)? (STDERR) TypeError: Object [object Object] has no method 'substr'
W20151220-11:33:05.173(8)? (STDERR)     at guessLineEndings (packages/harrison_papa-parse/baby-parse.js:488:1)
W20151220-11:33:05.173(8)? (STDERR)     at ParserHandle.parse (packages/harrison_papa-parse/baby-parse.js:291:1)
W20151220-11:33:05.173(8)? (STDERR)     at Object.CsvToJson [as parse] (packages/harrison_papa-parse/baby-parse.js:79:1)
W20151220-11:33:05.173(8)? (STDERR)     at server/bootstrap.js:54:7

为什么 forums.meteor.com 无法访问 连接的错误

4

1 回答 1

0

在那里GFW,访问forums.meteor.com可以使用vpn,现在可以了。

喜欢这个网址:http ://aberration.meteor.com

流星主机拒绝上传,所以选择了本地

于 2015-12-29T15:21:13.237 回答