You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into a weird error I'm not sure how to fix when i ran yarn vercel with the defaults
seems to be related to the react-json-view package getting a "ReferenceError: document is not defined"
Sorry to paste so much of the build logs here but are the warnings from [00:38:03.439] - [00:38:57.472] are all normal?
Any ideas on how i can fix this build?
[00:37:56.563] Running build in Washington, D.C., USA (East) – iad1 (Hive)
[00:37:56.660] Retrieving list of deployment files...
[00:37:57.281] Downloading 110 deployment files...
[00:37:57.293] Previous build caches not available
[00:37:57.831] Running "vercel build"
[00:37:58.357] Vercel CLI 32.2.5
[00:37:58.646] Installing dependencies...
[00:37:58.994] yarn install v1.22.17
[00:37:59.072] info No lockfile found.
[00:37:59.077] [1/4] Resolving packages...
[00:38:03.439] warning kubo-rpc-client > [email protected]: js-IPFS has been deprecated in favour of Helia - please see ipfs/js-ipfs#4336 for details
[00:38:03.766] warning kubo-rpc-client > ipfs-core-utils > [email protected]: js-IPFS has been deprecated in favour of Helia - please see ipfs/js-ipfs#4336 for details
[00:38:17.459] warning vercel > @vercel/remix-builder > @remix-run/dev > cacache > @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
[00:38:17.705] warning vercel > @vercel/remix-builder > @remix-run/dev > @esbuild-plugins/node-modules-polyfill > rollup-plugin-node-polyfills > [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
[00:38:18.212] warning vercel > @vercel/remix-builder > @remix-run/dev > @esbuild-plugins/node-modules-polyfill > rollup-plugin-node-polyfills > rollup-plugin-inject > magic-string > [email protected]: Please use @jridgewell/sourcemap-codec instead
[00:38:18.241] warning vercel > @vercel/remix-builder > @remix-run/dev > proxy-agent > pac-proxy-agent > pac-resolver > degenerator > [email protected]: The library contains critical security issues and should not be used for production! The maintenance of the project has been discontinued. Consider migrating your code to isolated-vm.
[00:38:18.565] [2/4] Fetching packages...
[00:38:57.431] [3/4] Linking dependencies...
[00:38:57.436] warning "react-hot-toast > [email protected]" has unmet peer dependency "csstype@^3.0.10".
[00:38:57.436] warning " > [email protected]" has incorrect peer dependency "react@^17.0.0 || ^16.3.0 || ^15.5.4".
[00:38:57.437] warning " > [email protected]" has incorrect peer dependency "react-dom@^17.0.0 || ^16.3.0 || ^15.5.4".
[00:38:57.437] warning "react-json-view > [email protected]" has incorrect peer dependency "react@^15.0.2 || ^16.0.0 || ^17.0.0".
[00:38:57.437] warning " > [email protected]" has incorrect peer dependency "typescript@>=5.0.4".
[00:38:57.437] warning "viem > [email protected]" has incorrect peer dependency "typescript@>=5.0.4".
[00:38:57.439] warning " > @typescript-eslint/[email protected]" has unmet peer dependency "@typescript-eslint/parser@^5.0.0".
[00:38:57.472] warning Workspaces can only be enabled in private projects.
[00:39:10.806] [4/4] Building fresh packages...
[00:39:15.603] success Saved lockfile.
[00:39:15.607] Done in 76.62s.
[00:39:15.687] Detected Next.js version: 13.5.1
[00:39:15.689] Running "yarn run build"
[00:39:15.886] yarn run v1.22.17
[00:39:15.910] $ next build
[00:39:16.465] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[00:39:16.465] This information is used to shape Next.js' roadmap and prioritize features.
[00:39:16.466] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[00:39:16.466] https://nextjs.org/telemetry
[00:39:16.466]
[00:39:16.556] Skipping validation of types
[00:39:16.556] Skipping linting
[00:39:16.976] Creating an optimized production build...
[00:39:35.195]
[00:39:35.195] �[35m🌼 daisyUI 3.7.6�[0m �[0mhttps://daisyui.com
[00:39:35.379] ╰╮
[00:39:35.380] ╰─ �[32m✔︎�[0m �[2m[ �[0m3�[2m ]�[0m themes are enabled. You can add more themes or make your own theme:
[00:39:35.380] https://daisyui.com/docs/themes
[00:39:35.381]
[00:39:35.383] �[32m ❤︎ Support daisyUI�[0m: https://opencollective.com/daisyui�[0m
[00:39:35.383]
[00:39:46.738] ✓ Compiled successfully
[00:39:46.739] Collecting page data...
[00:39:47.839] [DEPRECATED] Default export is deprecated. Instead use import { create } from 'zustand'.
[00:39:47.900] [DEPRECATED] Default export is deprecated. Instead use import { create } from 'zustand'.
[00:39:47.942] [DEPRECATED] Default export is deprecated. Instead use import { create } from 'zustand'.
[00:39:49.494] /vercel/path0/node_modules/react-json-view/dist/main.js:1
[00:39:49.497] !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.reactJsonView=t(require("react")):e.reactJsonView=t(e.React)}(this,(function(e){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=48)}([function(t,n){t.exports=e},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var a=n(26)("wks"),r=n(17),o=n(3).Symbol,i="function"==typeof o;(e.exports=function(e){return a[e]||(a[e]=i&&o[e]||(i?o:r)("Symbol."+e))}).store=a},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){e.exports=!n(8)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var a=n(7),r=n(16);e.exports=n(4)?function(e,t,n){return a.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var a=n(10),r=n(35),o=n(23),i=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(a(e),t=o(t,!0),a(n),r)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var a=n(40),r=n(22);e.exports=function(e){return a(r(e))}},function(e,t,n){var a=n(11);e.exports=function(e){if(!a(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t,n){var a=n(39),r=n(27);e.exports=Object.keys||function(e){return a(e,r)}},function(e,t){e.exports=!0},function(e,t,n){var a=n(3),r=n(1),o=n(53),i=n(6),s=n(5),c=function(e,t,n){var l,u,f,p=e&c.F,d=e&c.G,b=e&c.S,h=e&c.P,v=e&c.B,m=e&c.W,y=d?r:r[t]||(r[t]={}),g=y.prototype,E=d?a:b?a[t]:(a[t]||{}).prototype;for(l in d&&(n=t),n)(u=!p&&E&&void 0!==E[l])&&s(y,l)||(f=u?E[l]:n[l],y[l]=d&&"function"!=typeof E[l]?n[l]:v&&u?o(f,a):m&&E[l]==f?function(e){var t=function(t,n,a){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,a)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):h&&"function"==typeof f?o(Function.call,f):f,h&&((y.virtual||(y.virtual={}))[l]=f,e&c.R&&g&&!g[l]&&i(g,l,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,a=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+a).toString(36))}},function(e,t,n){var a=n(22);e.exports=function(e){return Object(a(e))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var a=n(52)(!0);n(34)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=a(t,n),this._i+=e.length,{value:e,done:!1})}))},functio
[00:39:49.500]
[00:39:49.500]
[00:39:49.500] ReferenceError: document is not defined
[00:39:49.501] at Module. (/vercel/path0/node_modules/react-json-view/dist/main.js:1:81443)
[00:39:49.501] at n (/vercel/path0/node_modules/react-json-view/dist/main.js:1:387)
[00:39:49.501] at Object. (/vercel/path0/node_modules/react-json-view/dist/main.js:1:18423)
[00:39:49.501] at n (/vercel/path0/node_modules/react-json-view/dist/main.js:1:387)
[00:39:49.501] at /vercel/path0/node_modules/react-json-view/dist/main.js:1:1186
[00:39:49.501] at /vercel/path0/node_modules/react-json-view/dist/main.js:1:1196
[00:39:49.501] at /vercel/path0/node_modules/react-json-view/dist/main.js:1:81
[00:39:49.501] at Object. (/vercel/path0/node_modules/react-json-view/dist/main.js:1:253)
[00:39:49.501] at Module._compile (node:internal/modules/cjs/loader:1256:14)
[00:39:49.501] at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
[00:39:49.501]
[00:39:49.501] Node.js v18.17.1
[00:39:49.554] Static worker unexpectedly exited with code: 1 and signal: null
The text was updated successfully, but these errors were encountered:
Ran into a weird error I'm not sure how to fix when i ran
yarn vercel
with the defaultsseems to be related to the react-json-view package getting a "ReferenceError: document is not defined"
Sorry to paste so much of the build logs here but are the warnings from [00:38:03.439] - [00:38:57.472] are all normal?
Any ideas on how i can fix this build?
[00:37:56.563] Running build in Washington, D.C., USA (East) – iad1 (Hive)
[00:37:56.660] Retrieving list of deployment files...
[00:37:57.281] Downloading 110 deployment files...
[00:37:57.293] Previous build caches not available
[00:37:57.831] Running "vercel build"
[00:37:58.357] Vercel CLI 32.2.5
[00:37:58.646] Installing dependencies...
[00:37:58.994] yarn install v1.22.17
[00:37:59.072] info No lockfile found.
[00:37:59.077] [1/4] Resolving packages...
[00:38:03.439] warning kubo-rpc-client > [email protected]: js-IPFS has been deprecated in favour of Helia - please see ipfs/js-ipfs#4336 for details
[00:38:03.766] warning kubo-rpc-client > ipfs-core-utils > [email protected]: js-IPFS has been deprecated in favour of Helia - please see ipfs/js-ipfs#4336 for details
[00:38:17.459] warning vercel > @vercel/remix-builder > @remix-run/dev > cacache > @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
[00:38:17.705] warning vercel > @vercel/remix-builder > @remix-run/dev > @esbuild-plugins/node-modules-polyfill > rollup-plugin-node-polyfills > [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
[00:38:18.212] warning vercel > @vercel/remix-builder > @remix-run/dev > @esbuild-plugins/node-modules-polyfill > rollup-plugin-node-polyfills > rollup-plugin-inject > magic-string > [email protected]: Please use @jridgewell/sourcemap-codec instead
[00:38:18.241] warning vercel > @vercel/remix-builder > @remix-run/dev > proxy-agent > pac-proxy-agent > pac-resolver > degenerator > [email protected]: The library contains critical security issues and should not be used for production! The maintenance of the project has been discontinued. Consider migrating your code to isolated-vm.
[00:38:18.565] [2/4] Fetching packages...
[00:38:57.431] [3/4] Linking dependencies...
[00:38:57.436] warning "react-hot-toast > [email protected]" has unmet peer dependency "csstype@^3.0.10".
[00:38:57.436] warning " > [email protected]" has incorrect peer dependency "react@^17.0.0 || ^16.3.0 || ^15.5.4".
[00:38:57.437] warning " > [email protected]" has incorrect peer dependency "react-dom@^17.0.0 || ^16.3.0 || ^15.5.4".
[00:38:57.437] warning "react-json-view > [email protected]" has incorrect peer dependency "react@^15.0.2 || ^16.0.0 || ^17.0.0".
[00:38:57.437] warning " > [email protected]" has incorrect peer dependency "typescript@>=5.0.4".
[00:38:57.437] warning "viem > [email protected]" has incorrect peer dependency "typescript@>=5.0.4".
[00:38:57.439] warning " > @typescript-eslint/[email protected]" has unmet peer dependency "@typescript-eslint/parser@^5.0.0".
[00:38:57.472] warning Workspaces can only be enabled in private projects.
[00:39:10.806] [4/4] Building fresh packages...
[00:39:15.603] success Saved lockfile.
[00:39:15.607] Done in 76.62s.
[00:39:15.687] Detected Next.js version: 13.5.1
[00:39:15.689] Running "yarn run build"
[00:39:15.886] yarn run v1.22.17
[00:39:15.910] $ next build
[00:39:16.465] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[00:39:16.465] This information is used to shape Next.js' roadmap and prioritize features.
[00:39:16.466] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[00:39:16.466] https://nextjs.org/telemetry
[00:39:16.466]
[00:39:16.556] Skipping validation of types
[00:39:16.556] Skipping linting
[00:39:16.976] Creating an optimized production build...
[00:39:35.195]
[00:39:35.195] �[35m🌼 daisyUI 3.7.6�[0m �[0mhttps://daisyui.com
[00:39:35.379] ╰╮
[00:39:35.380] ╰─ �[32m✔︎�[0m �[2m[ �[0m3�[2m ]�[0m themes are enabled. You can add more themes or make your own theme:
[00:39:35.380] https://daisyui.com/docs/themes
[00:39:35.381]
[00:39:35.383] �[32m ❤︎ Support daisyUI�[0m: https://opencollective.com/daisyui�[0m
[00:39:35.383]
[00:39:46.738] ✓ Compiled successfully
[00:39:46.739] Collecting page data...
[00:39:47.839] [DEPRECATED] Default export is deprecated. Instead use
import { create } from 'zustand'
.[00:39:47.900] [DEPRECATED] Default export is deprecated. Instead use
import { create } from 'zustand'
.[00:39:47.942] [DEPRECATED] Default export is deprecated. Instead use
import { create } from 'zustand'
.[00:39:49.494] /vercel/path0/node_modules/react-json-view/dist/main.js:1
[00:39:49.497] !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.reactJsonView=t(require("react")):e.reactJsonView=t(e.React)}(this,(function(e){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=48)}([function(t,n){t.exports=e},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var a=n(26)("wks"),r=n(17),o=n(3).Symbol,i="function"==typeof o;(e.exports=function(e){return a[e]||(a[e]=i&&o[e]||(i?o:r)("Symbol."+e))}).store=a},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){e.exports=!n(8)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var a=n(7),r=n(16);e.exports=n(4)?function(e,t,n){return a.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var a=n(10),r=n(35),o=n(23),i=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(a(e),t=o(t,!0),a(n),r)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var a=n(40),r=n(22);e.exports=function(e){return a(r(e))}},function(e,t,n){var a=n(11);e.exports=function(e){if(!a(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t,n){var a=n(39),r=n(27);e.exports=Object.keys||function(e){return a(e,r)}},function(e,t){e.exports=!0},function(e,t,n){var a=n(3),r=n(1),o=n(53),i=n(6),s=n(5),c=function(e,t,n){var l,u,f,p=e&c.F,d=e&c.G,b=e&c.S,h=e&c.P,v=e&c.B,m=e&c.W,y=d?r:r[t]||(r[t]={}),g=y.prototype,E=d?a:b?a[t]:(a[t]||{}).prototype;for(l in d&&(n=t),n)(u=!p&&E&&void 0!==E[l])&&s(y,l)||(f=u?E[l]:n[l],y[l]=d&&"function"!=typeof E[l]?n[l]:v&&u?o(f,a):m&&E[l]==f?function(e){var t=function(t,n,a){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,a)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):h&&"function"==typeof f?o(Function.call,f):f,h&&((y.virtual||(y.virtual={}))[l]=f,e&c.R&&g&&!g[l]&&i(g,l,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,a=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+a).toString(36))}},function(e,t,n){var a=n(22);e.exports=function(e){return Object(a(e))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var a=n(52)(!0);n(34)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=a(t,n),this._i+=e.length,{value:e,done:!1})}))},functio
[00:39:49.500]
[00:39:49.500]
[00:39:49.500] ReferenceError: document is not defined
[00:39:49.501] at Module. (/vercel/path0/node_modules/react-json-view/dist/main.js:1:81443)
[00:39:49.501] at n (/vercel/path0/node_modules/react-json-view/dist/main.js:1:387)
[00:39:49.501] at Object. (/vercel/path0/node_modules/react-json-view/dist/main.js:1:18423)
[00:39:49.501] at n (/vercel/path0/node_modules/react-json-view/dist/main.js:1:387)
[00:39:49.501] at /vercel/path0/node_modules/react-json-view/dist/main.js:1:1186
[00:39:49.501] at /vercel/path0/node_modules/react-json-view/dist/main.js:1:1196
[00:39:49.501] at /vercel/path0/node_modules/react-json-view/dist/main.js:1:81
[00:39:49.501] at Object. (/vercel/path0/node_modules/react-json-view/dist/main.js:1:253)
[00:39:49.501] at Module._compile (node:internal/modules/cjs/loader:1256:14)
[00:39:49.501] at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
[00:39:49.501]
[00:39:49.501] Node.js v18.17.1
[00:39:49.554] Static worker unexpectedly exited with code: 1 and signal: null
The text was updated successfully, but these errors were encountered: