Meteor 3 alpha deploy production

Hi,

has anyone managed to deploy any alpha > 13 in production?

With 15 I seem to have issues with the source map. It builds, deploys and then the environment never turns OK. This is from the server console:

Nov 24 18:05:12 ip-172-31-35-215 web[173064]: TypeError: Column must be greater than or equal to 0, got -16
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at SourceMapConsumer_findMapping [as _findMapping] (/var/app/current/programs/server/node_modules/source-map/lib/source-map/source-map-consumer.js:281:15)
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at SourceMapConsumer_originalPositionFor [as originalPositionFor] (/var/app/current/programs/server/node_modules/source-map/lib/source-map/source-map-consumer.js:310:26)
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at mapSourcePosition (/var/app/current/programs/server/node_modules/source-map-support/source-map-support.js:160:42)
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at wrapCallSite (/var/app/current/programs/server/node_modules/source-map-support/source-map-support.js:295:20)
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at wrapCallSite (/var/app/current/programs/server/boot.js:126:17)
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at /var/app/current/programs/server/node_modules/source-map-support/source-map-support.js:330:26
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at Array.map (<anonymous>)
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at Function.prepareStackTrace (/var/app/current/programs/server/node_modules/source-map-support/source-map-support.js:329:24)
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at maybeOverridePrepareStackTrace (node:internal/errors:140:29)
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at prepareStackTrace (node:internal/errors:114:5)
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at Object.startup (packages/meteor.js:967:28)
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at module.wrapAsync.self (packages/webapp/webapp_server.js:251:8)
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at Module.wrapAsync (/var/app/current/programs/server/npm/node_modules/meteor/modules/node_modules/@meteorjs/reify/lib/runtime/index.js:251:8)
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at module (/var/app/current/programs/server/packages/webapp.js:27:9)
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at fileEvaluate (packages/modules-runtime.js:335:7)
Nov 24 18:05:12 ip-172-31-35-215 web[173064]:    at Module.require (packages/modules-runtime.js:237:14)

which is something that seems to have occurred a long time ago in Meteor: Column must be greater than or equal to 0, got -1 · Issue #7360 · meteor/meteor · GitHub

I am deploying with MUP to Beanstalk. Unfortunately MUP doesn’t build alpha 18 due to this error:

Building App Bundle Locally
node:internal/fs/sync:78                                                    
  return binding.openSync(
                 ^

Error: ENOENT: no such file or directory, open '/var/folders/6q/9f60_j2s0fd9b1zcgtvcbtk00000gn/T/mup-meteor-54ed96b3-7742-4be3-bf67-2e40df18be0f/Users/paulailincai/.meteor/packages/meteor-tool/.3.0.0-alpha.18.1sel61v.lm7h++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/sqlite3/package.json'
    at Object.open (node:internal/fs/sync:78:18)
    at Object.openSync (node:fs:565:17)
    at Object.readFileSync (node:fs:445:35)
    at Run.parseOpts (/Users/paulailincai/.meteor/packages/meteor-tool/.3.0.0-alpha.18.1sel61v.lm7h++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js:181:37)
    at new Run (/Users/paulailincai/.meteor/packages/meteor-tool/.3.0.0-alpha.18.1sel61v.lm7h++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js:90:8)
    at Object.exports.find (/Users/paulailincai/.meteor/packages/meteor-tool/.3.0.0-alpha.18.1sel61v.lm7h++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js:21:16)
    at Object.<anonymous> (/Users/paulailincai/.meteor/packages/meteor-tool/.3.0.0-alpha.18.1sel61v.lm7h++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/sqlite3/lib/sqlite3-binding.js:3:29)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module.Mp._compile (/tools/static-assets/server/runtime.js:78:21)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1295:10) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/var/folders/6q/9f60_j2s0fd9b1zcgtvcbtk00000gn/T/mup-meteor-54ed96b3-7742-4be3-bf67-2e40df18be0f/Users/paulailincai/.meteor/packages/meteor-tool/.3.0.0-alpha.18.1sel61v.lm7h++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/sqlite3/package.json'
}

I can build and run both 15 and 18 successfully in production from the local station.

Hey, we are discussing the same issues here on Slack.

Update: I could deploy now with Alpha 19 (at least in the small meteor-template project).

https://meteor3-template-production-filipe-load.svc-us2.zcloud.ws/

I’m still getting a source-map error in codeftw.dev tho

I was able to deploy CodeFTW with Meteor 3 at https://meteor3.codeftw.dev

I’d to work around the source-map issue by skipping this step. See discussion on Slack.

I also explained in this video how I’m running a custom version of Meteor using Docker in zCloud.

I decided to merge the meteor3 branch to main, so now https://codeftw.dev is running with Meteor 3 but with source-map disabled.

PR Header screenshot