I want to deploy a demo site to one of the temporary URLβs assigned automatically by Zeit
By default, all deployments are assigned a
.now.sh
suffixed domain.
So, to do that, Iβve created the following now.json
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@frontity/now"
}
]
}
And then:
- Logged into
now
by doing βnpx now login
- Deployed to
now
by doing βnpx now --target production
Iβm getting this error
Error! Build failed
Hereβs the full log
β¬’ demo-frontity-env-variables-server ξ master β¦Ώ npx now --target production
> UPDATE AVAILABLE Run `npm i -g now@latest` to install Now CLI 17.1.1
> Changelog: https://github.com/zeit/now/releases/tag/now@17.1.1
Now CLI 17.0.4
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β WARN! We recommend using the much shorter `--prod` option instead of `--target production` (deprecated) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π Inspect: https://zeit.co/juanmaguitar/demo-frontity-env-variables-server/3qau7fwwk [2s]
Error! Build failed
Error! Check your logs at https://demo-frontity-env-variables-server-3qau7fwwk.now.sh/_logs or run `now logs https://demo-frontity-env-variables-server-3qau7fwwk.now.sh`
β¬’ demo-frontity-env-variables-server ξ master β¦Ώ now logs https://demo-frontity-env-variables-server-3qau7fwwk.now.sh
> UPDATE AVAILABLE Run `npm i -g now@latest` to install Now CLI 17.1.1
> Changelog: https://github.com/zeit/now/releases/tag/now@17.1.1
Now CLI 17.0.4
> Fetched deployment "demo-frontity-env-variables-server-3qau7fwwk.now.sh" in juanmaguitar [2s]
2020-04-13T08:12:52.305Z Installing build runtime...
2020-04-13T08:12:52.307Z yarn info @now/build-utils@latest...
2020-04-13T08:12:52.311Z yarn info @frontity/now...
2020-04-13T08:12:52.702Z yarn add @now/build-utils@2.2.0...
2020-04-13T08:12:52.760Z [now] [mutex] process.argv is ["/node12/bin/node","/zeit/.yarn/bin/yarn.js","--prod","--cwd","/zeit/282eda6b14fee2c7/.build-utils","add","@now/build-utils@2.2.0"]
2020-04-13T08:12:52.760Z [now] [mutex] process.cwd is "/zeit/282eda6b14fee2c7/.build-utils"
2020-04-13T08:12:52.760Z [now] [mutex] command is "install"
2020-04-13T08:12:52.760Z [now] [mutex] trying to acquire for 369
2020-04-13T08:12:52.764Z [now] [mutex] running instance 369
2020-04-13T08:12:52.913Z yarn add v1.22.0
2020-04-13T08:12:52.928Z info No lockfile found.
2020-04-13T08:12:52.947Z [1/4] Resolving packages...
2020-04-13T08:12:53.083Z [2/4] Fetching packages...
2020-04-13T08:12:53.087Z [3/4] Linking dependencies...
2020-04-13T08:12:53.140Z [4/4] Building fresh packages...
2020-04-13T08:12:53.143Z success Saved lockfile.
2020-04-13T08:12:53.146Z success Saved 1 new dependency.
2020-04-13T08:12:53.146Z info Direct dependencies
2020-04-13T08:12:53.147Z ββ @now/build-utils@2.2.0
2020-04-13T08:12:53.147Z info All dependencies
2020-04-13T08:12:53.147Z ββ @now/build-utils@2.2.0
2020-04-13T08:12:53.148Z Done in 0.24s.
2020-04-13T08:12:53.157Z yarn add @frontity/now@1.0.2...
2020-04-13T08:12:53.214Z [now] [mutex] process.argv is ["/node12/bin/node","/zeit/.yarn/bin/yarn.js","--prod","--cwd","/zeit/282eda6b14fee2c7/.build-utils/.builder","add","@frontity/now@1.0.2"]
2020-04-13T08:12:53.215Z [now] [mutex] process.cwd is "/zeit/282eda6b14fee2c7/.build-utils/.builder"
2020-04-13T08:12:53.215Z [now] [mutex] command is "install"
2020-04-13T08:12:53.215Z [now] [mutex] trying to acquire for 401
2020-04-13T08:12:53.219Z [now] [mutex] running instance 401
2020-04-13T08:12:53.366Z yarn add v1.22.0
2020-04-13T08:12:53.381Z info No lockfile found.
2020-04-13T08:12:53.400Z [1/4] Resolving packages...
2020-04-13T08:12:53.547Z [2/4] Fetching packages...
2020-04-13T08:12:53.626Z [3/4] Linking dependencies...
2020-04-13T08:12:53.626Z warning " > @frontity/now@1.0.2" has unmet peer dependency "@now/build-utils@^0.9.4".
2020-04-13T08:12:53.637Z [4/4] Building fresh packages...
2020-04-13T08:12:53.640Z success Saved lockfile.
2020-04-13T08:12:53.642Z success Saved 2 new dependencies.
2020-04-13T08:12:53.642Z info Direct dependencies
2020-04-13T08:12:53.643Z ββ @frontity/now@1.0.2
2020-04-13T08:12:53.643Z info All dependencies
2020-04-13T08:12:53.643Z ββ @frontity/now@1.0.2
2020-04-13T08:12:53.643Z ββ @now/node-bridge@1.2.6
2020-04-13T08:12:53.644Z Done in 0.28s.
2020-04-13T08:12:53.653Z Build runtime installed: 1347.762ms
2020-04-13T08:12:53.970Z Looking up build cache...
2020-04-13T08:12:54.012Z Build cache not found
2020-04-13T08:12:54.335Z Running builder.exports.build...
2020-04-13T08:12:54.335Z Downloading user files...
2020-04-13T08:13:04.812Z
2020-04-13T08:13:04.812Z > core-js@2.6.11 postinstall /zeit/5f4bdf0b/node_modules/babel-polyfill/node_modules/core-js
2020-04-13T08:13:04.812Z > node -e "try{require('./postinstall')}catch(e){}"
2020-04-13T08:13:04.812Z
2020-04-13T08:13:04.872Z Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
2020-04-13T08:13:04.872Z
2020-04-13T08:13:04.872Z The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
2020-04-13T08:13:04.872Z > https://opencollective.com/core-js
2020-04-13T08:13:04.872Z > https://www.patreon.com/zloirock
2020-04-13T08:13:04.872Z
2020-04-13T08:13:04.872Z Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
2020-04-13T08:13:04.872Z
2020-04-13T08:13:04.877Z
2020-04-13T08:13:04.877Z > core-js@2.6.11 postinstall /zeit/5f4bdf0b/node_modules/babel-runtime/node_modules/core-js
2020-04-13T08:13:04.877Z > node -e "try{require('./postinstall')}catch(e){}"
2020-04-13T08:13:04.877Z
2020-04-13T08:13:04.938Z
2020-04-13T08:13:04.938Z > core-js@3.6.4 postinstall /zeit/5f4bdf0b/node_modules/core-js
2020-04-13T08:13:04.938Z > node -e "try{require('./postinstall')}catch(e){}"
2020-04-13T08:13:04.938Z
2020-04-13T08:13:04.988Z
2020-04-13T08:13:04.988Z > ejs@2.7.4 postinstall /zeit/5f4bdf0b/node_modules/ejs
2020-04-13T08:13:04.988Z > node ./postinstall.js
2020-04-13T08:13:04.988Z
2020-04-13T08:13:05.035Z Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)
2020-04-13T08:13:05.036Z
2020-04-13T08:13:05.554Z npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules/fsevents):
2020-04-13T08:13:05.554Z npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2020-04-13T08:13:05.554Z
2020-04-13T08:13:05.556Z added 786 packages from 537 contributors in 10.663s
2020-04-13T08:13:05.862Z
2020-04-13T08:13:05.862Z 15 packages are looking for funding
2020-04-13T08:13:05.863Z run `npm fund` for details
2020-04-13T08:13:05.863Z
2020-04-13T08:13:05.893Z Running "build" script in "package.json"
2020-04-13T08:13:05.893Z Running "npm run build"
2020-04-13T08:13:06.071Z
2020-04-13T08:13:06.071Z > demo-frontity-env-variables-server@1.0.0 build /zeit/5f4bdf0b
2020-04-13T08:13:06.071Z > frontity build
2020-04-13T08:13:06.071Z
2020-04-13T08:13:06.776Z mode: production
2020-04-13T08:13:06.776Z
2020-04-13T08:13:06.837Z Building es5 bundle
2020-04-13T08:13:17.452Z Building module bundle
2020-04-13T08:13:22.901Z Building server bundle
2020-04-13T08:13:31.438Z
2020-04-13T08:13:31.498Z TypeError: Cannot read property 'fsPath' of undefined
2020-04-13T08:13:31.498Z at Object.build (/zeit/282eda6b14fee2c7/.build-utils/.builder/node_modules/@frontity/now/dist/index.js:95:49)
2020-04-13T08:13:31.498Z at async buildStep (/var/task/sandbox-worker.js:20373:20)
2020-04-13T08:13:31.498Z at async mainSub (/var/task/sandbox-worker.js:20118:9)
2020-04-13T08:13:31.498Z at async main (/var/task/sandbox-worker.js:20023:5)
2020-04-13T08:13:33.156Z Done with "package.json"
β¬’ demo-frontity-env-variables-server ξ master β¦Ώ npx now --target production
> UPDATE AVAILABLE Run `npm i -g now@latest` to install Now CLI 17.1.1
> Changelog: https://github.com/zeit/now/releases/tag/now@17.1.1
Now CLI 17.0.4
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β WARN! We recommend using the much shorter `--prod` option instead of `--target production` (deprecated) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π Inspect: https://zeit.co/juanmaguitar/demo-frontity-env-variables-server/43w0qn14r [2s]
Error! Build failed
Error! Check your logs at https://demo-frontity-env-variables-server-43w0qn14r.now.sh/_logs or run `now logs https://demo-frontity-env-variables-server-43w0qn14r.now.sh`
β¬’ demo-frontity-env-variables-server ξ master β¦Ώ now logs https://demo-frontity-env-variables-server-43w0qn14r.now.sh
> UPDATE AVAILABLE Run `npm i -g now@latest` to install Now CLI 17.1.1
> Changelog: https://github.com/zeit/now/releases/tag/now@17.1.1
Now CLI 17.0.4
> Fetched deployment "demo-frontity-env-variables-server-43w0qn14r.now.sh" in juanmaguitar [2s]
2020-04-13T08:19:25.744Z Installing build runtime...
2020-04-13T08:19:25.746Z yarn info @now/build-utils@latest...
2020-04-13T08:19:25.751Z yarn info @frontity/now...
2020-04-13T08:19:26.264Z yarn add @now/build-utils@2.2.0...
2020-04-13T08:19:26.322Z [now] [mutex] process.argv is ["/node12/bin/node","/zeit/.yarn/bin/yarn.js","--prod","--cwd","/zeit/282eda6b14fee2c7/.build-utils","add","@now/build-utils@2.2.0"]
2020-04-13T08:19:26.322Z [now] [mutex] process.cwd is "/zeit/282eda6b14fee2c7/.build-utils"
2020-04-13T08:19:26.323Z [now] [mutex] command is "install"
2020-04-13T08:19:26.323Z [now] [mutex] trying to acquire for 369
2020-04-13T08:19:26.327Z [now] [mutex] running instance 369
2020-04-13T08:19:26.473Z yarn add v1.22.0
2020-04-13T08:19:26.488Z info No lockfile found.
2020-04-13T08:19:26.507Z [1/4] Resolving packages...
2020-04-13T08:19:26.628Z [2/4] Fetching packages...
2020-04-13T08:19:26.633Z [3/4] Linking dependencies...
2020-04-13T08:19:26.680Z [4/4] Building fresh packages...
2020-04-13T08:19:26.683Z success Saved lockfile.
2020-04-13T08:19:26.685Z success Saved 1 new dependency.
2020-04-13T08:19:26.686Z info Direct dependencies
2020-04-13T08:19:26.686Z ββ @now/build-utils@2.2.0
2020-04-13T08:19:26.686Z info All dependencies
2020-04-13T08:19:26.686Z ββ @now/build-utils@2.2.0
2020-04-13T08:19:26.687Z Done in 0.22s.
2020-04-13T08:19:26.696Z yarn add @frontity/now@1.0.2...
2020-04-13T08:19:26.754Z [now] [mutex] process.argv is ["/node12/bin/node","/zeit/.yarn/bin/yarn.js","--prod","--cwd","/zeit/282eda6b14fee2c7/.build-utils/.builder","add","@frontity/now@1.0.2"]
2020-04-13T08:19:26.754Z [now] [mutex] process.cwd is "/zeit/282eda6b14fee2c7/.build-utils/.builder"
2020-04-13T08:19:26.755Z [now] [mutex] command is "install"
2020-04-13T08:19:26.755Z [now] [mutex] trying to acquire for 401
2020-04-13T08:19:26.759Z [now] [mutex] running instance 401
2020-04-13T08:19:26.907Z yarn add v1.22.0
2020-04-13T08:19:26.922Z info No lockfile found.
2020-04-13T08:19:26.941Z [1/4] Resolving packages...
2020-04-13T08:19:27.139Z [2/4] Fetching packages...
2020-04-13T08:19:27.275Z [3/4] Linking dependencies...
2020-04-13T08:19:27.276Z warning " > @frontity/now@1.0.2" has unmet peer dependency "@now/build-utils@^0.9.4".
2020-04-13T08:19:27.286Z [4/4] Building fresh packages...
2020-04-13T08:19:27.289Z success Saved lockfile.
2020-04-13T08:19:27.292Z success Saved 2 new dependencies.
2020-04-13T08:19:27.292Z info Direct dependencies
2020-04-13T08:19:27.293Z ββ @frontity/now@1.0.2
2020-04-13T08:19:27.293Z info All dependencies
2020-04-13T08:19:27.293Z ββ @frontity/now@1.0.2
2020-04-13T08:19:27.293Z ββ @now/node-bridge@1.2.6
2020-04-13T08:19:27.294Z Done in 0.39s.
2020-04-13T08:19:27.303Z Build runtime installed: 1559.111ms
2020-04-13T08:19:27.621Z Looking up build cache...
2020-04-13T08:19:27.664Z Build cache not found
2020-04-13T08:19:27.991Z Running builder.exports.build...
2020-04-13T08:19:27.992Z Downloading user files...
2020-04-13T08:19:38.546Z
2020-04-13T08:19:38.546Z > core-js@2.6.11 postinstall /zeit/127ea34d/node_modules/babel-polyfill/node_modules/core-js
2020-04-13T08:19:38.546Z > node -e "try{require('./postinstall')}catch(e){}"
2020-04-13T08:19:38.546Z
2020-04-13T08:19:38.605Z Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
2020-04-13T08:19:38.605Z
2020-04-13T08:19:38.605Z The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
2020-04-13T08:19:38.605Z > https://opencollective.com/core-js
2020-04-13T08:19:38.605Z > https://www.patreon.com/zloirock
2020-04-13T08:19:38.605Z
2020-04-13T08:19:38.605Z Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
2020-04-13T08:19:38.605Z
2020-04-13T08:19:38.609Z
2020-04-13T08:19:38.609Z > core-js@2.6.11 postinstall /zeit/127ea34d/node_modules/babel-runtime/node_modules/core-js
2020-04-13T08:19:38.609Z > node -e "try{require('./postinstall')}catch(e){}"
2020-04-13T08:19:38.609Z
2020-04-13T08:19:38.661Z
2020-04-13T08:19:38.661Z > core-js@3.6.4 postinstall /zeit/127ea34d/node_modules/core-js
2020-04-13T08:19:38.661Z > node -e "try{require('./postinstall')}catch(e){}"
2020-04-13T08:19:38.661Z
2020-04-13T08:19:38.710Z
2020-04-13T08:19:38.710Z > ejs@2.7.4 postinstall /zeit/127ea34d/node_modules/ejs
2020-04-13T08:19:38.710Z > node ./postinstall.js
2020-04-13T08:19:38.710Z
2020-04-13T08:19:38.757Z Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)
2020-04-13T08:19:38.757Z
2020-04-13T08:19:39.290Z npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules/fsevents):
2020-04-13T08:19:39.290Z npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2020-04-13T08:19:39.290Z
2020-04-13T08:19:39.292Z added 786 packages from 537 contributors in 10.719s
2020-04-13T08:19:39.593Z
2020-04-13T08:19:39.593Z 15 packages are looking for funding
2020-04-13T08:19:39.594Z run `npm fund` for details
2020-04-13T08:19:39.594Z
2020-04-13T08:19:39.623Z Running "build" script in "package.json"
2020-04-13T08:19:39.623Z Running "npm run build"
2020-04-13T08:19:39.802Z
2020-04-13T08:19:39.802Z > demo-frontity-env-variables-server@1.0.0 build /zeit/127ea34d
2020-04-13T08:19:39.802Z > frontity build
2020-04-13T08:19:39.802Z
2020-04-13T08:19:40.526Z mode: production
2020-04-13T08:19:40.526Z
2020-04-13T08:19:40.589Z Building es5 bundle
2020-04-13T08:19:51.446Z Building module bundle
2020-04-13T08:19:56.946Z Building server bundle
2020-04-13T08:20:05.560Z
2020-04-13T08:20:05.608Z TypeError: Cannot read property 'fsPath' of undefined
2020-04-13T08:20:05.608Z at Object.build (/zeit/282eda6b14fee2c7/.build-utils/.builder/node_modules/@frontity/now/dist/index.js:95:49)
2020-04-13T08:20:05.608Z at async buildStep (/var/task/sandbox-worker.js:20373:20)
2020-04-13T08:20:05.608Z at async mainSub (/var/task/sandbox-worker.js:20118:9)
2020-04-13T08:20:05.608Z at async main (/var/task/sandbox-worker.js:20023:5)
2020-04-13T08:20:07.164Z Done with "package.json"
As it seems the build
process in now
involves the use of yarn
, maybe this is an issue related to