Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server crashed - ReferenceError: globalThis is not defined #9

Open
sicambria opened this issue Jul 19, 2020 · 0 comments
Open

Server crashed - ReferenceError: globalThis is not defined #9

sicambria opened this issue Jul 19, 2020 · 0 comments

Comments

@sicambria
Copy link

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)

Server crashed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant