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
ReferenceError: globalThis is not defined
at Object. (/home/.../advocat/Advocat-master/pwa/sapper/dev/server/server-9878a3de.js:2123:16)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module._load (/home/.../advocat/Advocat-master/pwa/node_modules/fuxor/index.js:17:12)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/.../advocat/Advocat-master/pwa/sapper/dev/server/server.js:4:1)
Server crashed
The text was updated successfully, but these errors were encountered:
yarn dev command fails with "Server crashed - ReferenceError: globalThis is not defined"
OS: Ubuntu 18.04.4 LTS x86_64
node -v: v10.21.0
npm -v: 6.14.4
Details
Advocat-master/pwa/sapper/dev/server/server-9878a3de.js:2123
const btoa$1 = globalThis.btoa || ((str) => Buffer.from(str, 'binary').toString('base64'));
^
ReferenceError: globalThis is not defined
at Object. (/home/.../advocat/Advocat-master/pwa/sapper/dev/server/server-9878a3de.js:2123:16)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module._load (/home/.../advocat/Advocat-master/pwa/node_modules/fuxor/index.js:17:12)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/.../advocat/Advocat-master/pwa/sapper/dev/server/server.js:4:1)
The text was updated successfully, but these errors were encountered: