Closed darkbasic closed 7 years ago
@darkbasic Can you tell me what happens if you append --packs-dir ./packages
to your command? I know what could be the source for the problem I'm just trying to find it in the most accurate way
$ meteor-client bundle -s api --packs-dir ./packages
/home/niko/.meteor/packages/meteor-tool/.1.4.4_1.1t9hste++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:190
throw error;
^
SyntaxError: Unexpected token
at Object.parse (native)
at /tools/packaging/catalog/catalog-remote.js:873:19
at Array.map (native)
at Function._.map._.collect (/home/niko/.meteor/packages/meteor-tool/.1.4.4_1.1t9hste++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:97:56)
at [object Object]._.extend._contentQuery (/tools/packaging/catalog/catalog-remote.js:872:14)
at [object Object]._.extend.getSortedVersionRecords (/tools/packaging/catalog/catalog-remote.js:568:31)
at [object Object]._.extend._returnFirst (/tools/packaging/catalog/catalog.js:190:12)
at [object Object]._.extend.getSortedVersionRecords (/tools/packaging/catalog/catalog.js:202:17)
at [object Object].CS.CatalogLoader._getSortedVersionRecords (packages/constraint-solver.js:333:20)
at [object Object].CS.CatalogLoader.loadAllVersions (packages/constraint-solver.js:362:26)
at [object Object].CS.CatalogLoader.loadAllVersionsRecursive (packages/constraint-solver.js:395:10)
at [object Object].CS.Input.loadFromCatalog (packages/constraint-solver.js:562:17)
at packages/constraint-solver.js:2217:15
at Function.time (/tools/tool-env/profile.js:305:10)
at [object Object].CS.PackagesResolver.resolve (packages/constraint-solver.js:2214:13)
at /tools/project-context.js:533:35
at Function.time (/tools/tool-env/profile.js:305:10)
at /tools/project-context.js:529:19
at /tools/utils/buildmessage.js:359:18
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:352:34
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:350:23
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at /tools/project-context.js:501:20
at /tools/packaging/catalog/catalog.js:100:5
at /tools/utils/buildmessage.js:271:13
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at Object.catalog.runAndRetryWithRefreshIfHelpful (/tools/packaging/catalog/catalog.js:99:31)
at ProjectContext._resolveConstraints (/tools/project-context.js:500:13)
at /tools/project-context.js:283:9
at /tools/utils/buildmessage.js:359:18
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:352:34
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:350:23
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at ProjectContext._.extend._completeStagesThrough (/tools/project-context.js:273:18)
at /tools/project-context.js:265:12
at Function.run (/tools/tool-env/profile.js:490:12)
at ProjectContext._.extend.prepareProjectForBuild (/tools/project-context.js:264:13)
at /tools/cli/commands.js:741:20
at /tools/utils/buildmessage.js:271:13
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at Object.main.captureAndExit (/tools/cli/main.js:273:29)
at Command.func (/tools/cli/commands.js:715:8)
at /tools/cli/main.js:1483:23
/usr/lib/node_modules/meteor-client-bundler/node_modules/execa/index.js:277
throw (result.error || new Error(result.stderr === '' ? result.stdout : result.stderr));
^
Error: null
at Function.module.exports.sync (/usr/lib/node_modules/meteor-client-bundler/node_modules/execa/index.js:277:26)
at Object.bundle (/usr/lib/node_modules/meteor-client-bundler/lib/bundler.js:35:9)
at Command.<anonymous> (/usr/lib/node_modules/meteor-client-bundler/cli:42:13)
at Command.listener (/usr/lib/node_modules/meteor-client-bundler/node_modules/commander/index.js:301:8)
at emitTwo (events.js:106:13)
at Command.emit (events.js:194:7)
at Command.parseArgs (/usr/lib/node_modules/meteor-client-bundler/node_modules/commander/index.js:615:12)
at Command.parse (/usr/lib/node_modules/meteor-client-bundler/node_modules/commander/index.js:458:21)
at Object.<anonymous> (/usr/lib/node_modules/meteor-client-bundler/cli:50:9)
at Module._compile (module.js:571:32)
I know what could be the source for the problem
Do you have a workaround I can use in the meantime? I'm using the whatsapp tutorial as a testbed but I have a real world app to write and I cannot halt the development :)
It seems the problem is not limited to meteor-package-bundler:
$ meteor add jalik:ufs
/home/niko/.meteor/packages/meteor-tool/.1.4.4_1.1t9hste++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/isopackets/ddp/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:190
throw error;
^
SyntaxError: Unexpected token
at Object.parse (native)
at /tools/packaging/catalog/catalog-remote.js:873:19
at Array.map (native)
at Function._.map._.collect (/home/niko/.meteor/packages/meteor-tool/.1.4.4_1.1t9hste++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:97:56)
at [object Object]._.extend._contentQuery (/tools/packaging/catalog/catalog-remote.js:872:14)
at [object Object]._.extend.getSortedVersionRecords (/tools/packaging/catalog/catalog-remote.js:568:31)
at [object Object]._.extend._returnFirst (/tools/packaging/catalog/catalog.js:190:12)
at [object Object]._.extend.getSortedVersionRecords (/tools/packaging/catalog/catalog.js:202:17)
at [object Object].CS.CatalogLoader._getSortedVersionRecords (packages/constraint-solver.js:333:20)
at [object Object].CS.CatalogLoader.loadAllVersions (packages/constraint-solver.js:362:26)
at [object Object].CS.CatalogLoader.loadAllVersionsRecursive (packages/constraint-solver.js:395:10)
at [object Object].CS.Input.loadFromCatalog (packages/constraint-solver.js:562:17)
at packages/constraint-solver.js:2217:15
at Function.time (/tools/tool-env/profile.js:305:10)
at [object Object].CS.PackagesResolver.resolve (packages/constraint-solver.js:2214:13)
at /tools/project-context.js:533:35
at Function.time (/tools/tool-env/profile.js:305:10)
at /tools/project-context.js:529:19
at /tools/utils/buildmessage.js:359:18
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:352:34
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:350:23
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at /tools/project-context.js:501:20
at /tools/packaging/catalog/catalog.js:100:5
at /tools/utils/buildmessage.js:271:13
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at Object.catalog.runAndRetryWithRefreshIfHelpful (/tools/packaging/catalog/catalog.js:99:31)
at ProjectContext._resolveConstraints (/tools/project-context.js:500:13)
at /tools/project-context.js:283:9
at /tools/utils/buildmessage.js:359:18
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:352:34
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:350:23
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at ProjectContext._.extend._completeStagesThrough (/tools/project-context.js:273:18)
at /tools/project-context.js:265:12
at Function.run (/tools/tool-env/profile.js:490:12)
at ProjectContext._.extend.prepareProjectForBuild (/tools/project-context.js:264:13)
at /tools/cli/commands-packages.js:2071:20
at /tools/utils/buildmessage.js:271:13
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at Command.func (/tools/cli/commands-packages.js:2070:27)
at /tools/cli/main.js:1483:23
Deleting ~/.meteor and reinstalling Meteor solved my problem. I cal still access the old copy of .meteor through btrfs snapshots if you want me to.
@darkbasic No that's good enough for now. I'm closing this issue then :-)
I'm using meteor-client-bunlde-0.2.0 Omitting the config file changes nothing. It used to work previously.