Closed danielweck closed 5 years ago
NodeJS runtime:
Now: 10.7.0
Heroku: 10.9.0
NPM:
Heroku: 6.4.0
Now: 6.1.0
Javascript code reference (ES8-2017): https://github.com/edrlab/r2-utils-js-dist/blob/bcb231232fa7a6b0dda8bae4ee8b6775b3e82e5c/dist/es8-es2017/src/_utils/JsonUtils.js#L32
This looks like a TAJSON serialization failure. There is another error, probably related: https://r2-streamer-js-gizgtwvnnp.now.sh/pub/L2hvbWUvbm93dXNlci9zcmMvbWlzYy9lcHVicy93YXN0ZWxhbmQtb3RmLW9iZl9MQ1BfZGFuLmVwdWI%3D/manifest.json
Internal Server Error
TypeError: lcpl.init is not a function
Tried to manually force NPM install dependencies into node_modules, to no avail. https://github.com/readium/r2-streamer-js/commit/27f3d69ddbee4da724ba49463ee421aa7dfd3ebe
This bizarre bug looks specific to Now.sh, and I think the problem started since we migrated r2-xxx-js
packages from GitHub "dist" repositories to proper NPM with semantic versioning (thus why I thought it could be a NPM cache issue in Now.sh infrastructure)
Now.sh documentation: https://zeit.co/docs/deployment-types/node https://zeit.co/blog/faster-javascript-deployments
Works fine now (probably a temporary NPM issue)