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

adapter-node: ReferenceError: BASE_ENV is not defined #3424

Closed
lovasoa opened this issue Jan 20, 2022 · 0 comments · Fixed by #3423
Closed

adapter-node: ReferenceError: BASE_ENV is not defined #3424

lovasoa opened this issue Jan 20, 2022 · 0 comments · Fixed by #3423

Comments

@lovasoa
Copy link
Contributor

lovasoa commented Jan 20, 2022

Describe the bug

Compiling a project with adapter-node fails with ReferenceError: BASE_ENV is not defined

Reproduction

Compile a project with adapter-static

https://github.com/lovasoa/sanipasse/tree/update-svelte

Logs

file:///workspaces/sanipasse/build/handler-4b919981.js:740
const base = BASE_ENV && process.env[BASE_ENV];
             ^

ReferenceError: BASE_ENV is not defined
    at file:///workspaces/sanipasse/build/handler-4b919981.js:740:14
    at ModuleJob.run (node:internal/modules/esm/module_job:185:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:281:24)
    at async loadESM (node:internal/process/esm_loader:88:5)
    at async handleMainPromise (node:internal/modules/run_main:65:12)

System Info

latest

Severity

blocking all usage of SvelteKit

Additional Information

No response

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

Successfully merging a pull request may close this issue.

1 participant