next build does not include absolute path to node module
next build includes absolute path in transpiled require path
yarn add [email protected]
next build
# Transpiled output
var _extends2 = require('babel-runtime/helpers/extends');
yarn add next@canary
next build
# Transpiled output
var _extends2 = require('/Users/kyle/projects/test/node_modules/babel-runtime/helpers/extends');
Unable to deploy to lambda using up due to up building locally and uploading zip file to s3 rendering absolute paths invalid
| Tech | Version |
|---------|---------|
| next | canary |
| node | 8.9.0 |
| OS | macos 10.13.2 |
Same problem - see ^^ postmortem. Also serverless environment deployed from Travis-CI.
FWIW the problem seems to be: https://github.com/zeit/next.js/blob/85f341c9d834114be1127cf73a04bc3517cc2f67/server/build/webpack/utils.js#L4
Created a pull request 馃檹 I had actually already fixed the babel-runtime issue. The pages issue is a new one 馃憤
Most helpful comment
Created a pull request 馃檹 I had actually already fixed the babel-runtime issue. The pages issue is a new one 馃憤