EDIT: I had a look through the changes since our last deployment, turns out the addition of react-transition-group@4.4.1 was causing the below error, I removed this dependency and deployed first attempt.
Having a similar issue trying to deploy to Now, using the default Frontity now.json
file I get your error, using my existing now.json
config file I get the below error:
2020-06-19T04:56:08.282Z TypeError: Cannot read property ātypeā of null
2020-06-19T04:56:08.283Z at /vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:43126:56
2020-06-19T04:56:08.283Z at Array.every ()
2020-06-19T04:56:08.283Z at handleWrappers (/vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:43126:41)
2020-06-19T04:56:08.283Z at module.exports.module.exports (/vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:46737:3)
2020-06-19T04:56:08.283Z at Job.emitDependency (/vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:39845:40)
2020-06-19T04:56:08.283Z at /vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:39631:18
2020-06-19T04:56:08.283Z at Array.map ()
2020-06-19T04:56:08.283Z at Object.module.exports.module.exports [as default] (/vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:39627:27)
2020-06-19T04:56:08.283Z at compile (/vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:26391:80)
2020-06-19T04:56:08.283Z at Object.build (/vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:26524:71)
2020-06-19T04:56:08.565Z [dmesg] follows:
2020-06-19T04:56:08.565Z [ 2055.387379] ecs-bridge: port 1(veth9972a1bc) entered disabled state
2020-06-19T04:56:08.565Z [ 2055.390165] device veth9972a1bc entered promiscuous mode
2020-06-19T04:56:08.565Z [ 2055.392611] ecs-bridge: port 1(veth9972a1bc) entered blocking state
2020-06-19T04:56:08.565Z [ 2055.396924] ecs-bridge: port 1(veth9972a1bc) entered forwarding state
Build log:
2020-06-19T04:56:06.911Z 11 packages are looking for funding
2020-06-19T04:56:06.911Z run npm fund
for details
2020-06-19T04:56:06.911Z
2020-06-19T04:56:08.282Z TypeError: Cannot read property ātypeā of null
2020-06-19T04:56:08.283Z at /vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:43126:56
2020-06-19T04:56:08.283Z at Array.every ()
2020-06-19T04:56:08.283Z at handleWrappers (/vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:43126:41)
2020-06-19T04:56:08.283Z at module.exports.module.exports (/vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:46737:3)
2020-06-19T04:56:08.283Z at Job.emitDependency (/vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:39845:40)
2020-06-19T04:56:08.283Z at /vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:39631:18
2020-06-19T04:56:08.283Z at Array.map ()
2020-06-19T04:56:08.283Z at Object.module.exports.module.exports [as default] (/vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:39627:27)
2020-06-19T04:56:08.283Z at compile (/vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:26391:80)
2020-06-19T04:56:08.283Z at Object.build (/vercel/5fcb12b5810a14f0/.build-utils/.builder/node_modules/@now/node/dist/index.js:26524:71)
2020-06-19T04:56:08.565Z [dmesg] follows:
2020-06-19T04:56:08.565Z [ 2055.387379] ecs-bridge: port 1(veth9972a1bc) entered disabled state
2020-06-19T04:56:08.565Z [ 2055.390165] device veth9972a1bc entered promiscuous mode
2020-06-19T04:56:08.565Z [ 2055.392611] ecs-bridge: port 1(veth9972a1bc) entered blocking state
2020-06-19T04:56:08.565Z [ 2055.396924] ecs-bridge: port 1(veth9972a1bc) entered forwarding state
2020-06-19T04:56:09.064Z Installing build runtimeā¦
2020-06-19T04:56:09.066Z yarn info @now/build-utils@latestā¦
2020-06-19T04:56:09.071Z yarn info @now/node-serverā¦
2020-06-19T04:56:09.396Z yarn add @now/build-utils@2.4.0, @vercel/build-utils@2.4.0ā¦
2020-06-19T04:56:09.456Z [now] [mutex] process.argv is ["/node12/bin/node","/vercel/.yarn/bin/yarn.js","āprod","ācwd","/vercel/5fba46d2d0ff0898/.build-utils",āaddā,"@now/build-utils@2.4.0","@vercel/build-utils@2.4.0"]
2020-06-19T04:56:09.457Z [now] [mutex] process.cwd is ā/vercel/5fba46d2d0ff0898/.build-utilsā
2020-06-19T04:56:09.457Z [now] [mutex] command is āinstallā
2020-06-19T04:56:09.457Z [now] [mutex] trying to acquire for 1392
2020-06-19T04:56:09.461Z [now] [mutex] running instance 1392
2020-06-19T04:56:09.608Z yarn add v1.22.4
2020-06-19T04:56:09.623Z info No lockfile found.
2020-06-19T04:56:09.642Z [1/4] Resolving packagesā¦
2020-06-19T04:56:09.797Z [2/4] Fetching packagesā¦
2020-06-19T04:56:09.801Z [3/4] Linking dependenciesā¦
2020-06-19T04:56:09.876Z [4/4] Building fresh packagesā¦
2020-06-19T04:56:09.879Z success Saved lockfile.
2020-06-19T04:56:09.882Z success Saved 2 new dependencies.
2020-06-19T04:56:09.882Z info Direct dependencies
2020-06-19T04:56:09.883Z āā @now/build-utils@2.4.0
2020-06-19T04:56:09.883Z āā @vercel/build-utils@2.4.0
2020-06-19T04:56:09.883Z info All dependencies
2020-06-19T04:56:09.883Z āā @now/build-utils@2.4.0
2020-06-19T04:56:09.883Z āā @vercel/build-utils@2.4.0
2020-06-19T04:56:09.884Z Done in 0.28s.
2020-06-19T04:56:09.899Z yarn add @now/node-server@0.8.2ā¦
2020-06-19T04:56:09.958Z [now] [mutex] process.argv is ["/node12/bin/node","/vercel/.yarn/bin/yarn.js","āprod","ācwd","/vercel/5fba46d2d0ff0898/.build-utils/.builder",āaddā,"@now/node-server@0.8.2"]
2020-06-19T04:56:09.958Z [now] [mutex] process.cwd is ā/vercel/5fba46d2d0ff0898/.build-utils/.builderā
2020-06-19T04:56:09.958Z [now] [mutex] command is āinstallā
2020-06-19T04:56:09.958Z [now] [mutex] trying to acquire for 1424
2020-06-19T04:56:09.962Z [now] [mutex] running instance 1424
2020-06-19T04:56:10.112Z yarn add v1.22.4
2020-06-19T04:56:10.128Z info No lockfile found.
2020-06-19T04:56:10.147Z [1/4] Resolving packagesā¦
2020-06-19T04:56:10.263Z warning @now/node-server@0.8.2: This package is no longer maintained. Please use @now/node instead.
2020-06-19T04:56:10.373Z [2/4] Fetching packagesā¦
2020-06-19T04:56:10.788Z [3/4] Linking dependenciesā¦
2020-06-19T04:56:10.881Z [4/4] Building fresh packagesā¦
2020-06-19T04:56:10.884Z success Saved lockfile.
2020-06-19T04:56:10.887Z success Saved 7 new dependencies.
2020-06-19T04:56:10.887Z info Direct dependencies
2020-06-19T04:56:10.888Z āā @now/node-server@0.8.2
2020-06-19T04:56:10.888Z info All dependencies
2020-06-19T04:56:10.888Z āā @now/node-bridge@1.2.2
2020-06-19T04:56:10.888Z āā @now/node-server@0.8.2
2020-06-19T04:56:10.888Z āā @zeit/ncc@0.18.5
2020-06-19T04:56:10.888Z āā fs-extra@7.0.1
2020-06-19T04:56:10.888Z āā graceful-fs@4.2.4
2020-06-19T04:56:10.888Z āā jsonfile@4.0.0
2020-06-19T04:56:10.888Z āā universalify@0.1.2
2020-06-19T04:56:10.889Z Done in 0.78s.
2020-06-19T04:56:10.899Z Build runtime installed: 1834.750ms
2020-06-19T04:56:11.241Z Looking up build cacheā¦
2020-06-19T04:56:11.314Z Build cache found. Downloadingā¦
2020-06-19T04:56:13.271Z Build cache downloaded [50.79 MB]: 1955.602ms
2020-06-19T04:56:13.608Z Running package.json builder.exports.buildā¦
2020-06-19T04:56:13.609Z downloading user filesā¦
2020-06-19T04:56:13.609Z installing dependencies for userās codeā¦
2020-06-19T04:56:17.771Z npm WARN @emotion/styled@10.0.27 requires a peer of @emotion/core@^10.0.27 but none is installed. You must install peer dependencies yourself.
2020-06-19T04:56:17.771Z npm WARN @emotion/styled-base@10.0.27 requires a peer of @emotion/core@^10.0.27 but none is installed. You must install peer dependencies yourself.
2020-06-19T04:56:17.771Z npm WARN bootstrap@4.4.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
2020-06-19T04:56:17.771Z npm WARN react-addons-css-transition-group@15.6.2 requires a peer of react@^15.4.2 but none is installed. You must install peer dependencies yourself.
2020-06-19T04:56:17.772Z npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents):
2020-06-19T04:56:17.772Z npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {āosā:ādarwinā,āarchā:āanyā} (current: {āosā:ālinuxā,āarchā:āx64ā})
2020-06-19T04:56:17.772Z
2020-06-19T04:56:17.772Z up to date in 3.74s
2020-06-19T04:56:18.094Z
2020-06-19T04:56:18.094Z 11 packages are looking for funding
2020-06-19T04:56:18.094Z run npm fund
for details
2020-06-19T04:56:18.094Z
2020-06-19T04:56:18.118Z running user scriptā¦
2020-06-19T04:56:18.118Z preparing lambda filesā¦
2020-06-19T04:56:18.118Z compiling entrypoint with nccā¦
2020-06-19T04:56:18.337Z ncc: Version 0.18.5
2020-06-19T04:56:18.338Z ncc: Compiling file index.js
2020-06-19T04:56:18.599Z Uploading build outputsā¦
2020-06-19T04:56:20.160Z Build completed. Populating build cacheā¦
2020-06-19T04:56:21.872Z Running package.json builder.exports.prepareCacheā¦
2020-06-19T04:56:32.877Z Uploading build cache [50.79 MB]ā¦
2020-06-19T04:56:33.649Z Build cache uploaded: 771.179ms
2020-06-19T04:56:33.665Z Done with āpackage.jsonā
2020-06-19T04:56:33.947Z Done with ābuild/server.jsā
Iāve updated my now.json
file to build package.json with @now/node
as per one of the warnings and still no dice.
Building the production version and deploying via Frontity works fine, our last deployment was over a month ago and didnāt have any issues.
Not sure how to grab the system, Node and packages like the OP in a quick way but this is also on a Mac with similar specs, using Node 13.9.0 and npm 6.13.7
package.json
and now.json
available here: https://gist.github.com/twenty/0812513fddef58f7aec7ac222bf887ec