Skip to content

Fix 'import_env.default' is undefined when access payload outside Next.js#7047

Closed
lazidoca wants to merge 3 commits into
payloadcms:mainfrom
lazidoca:beta
Closed

Fix 'import_env.default' is undefined when access payload outside Next.js#7047
lazidoca wants to merge 3 commits into
payloadcms:mainfrom
lazidoca:beta

Conversation

@lazidoca

@lazidoca lazidoca commented Jul 6, 2024

Copy link
Copy Markdown

Access payload outside Next.js generates a TypeError:
const { loadEnvConfig } = nextEnvImport;
^

TypeError: Cannot destructure property 'loadEnvConfig' of 'import_env.default' as it is undefined.

lazidoca added 3 commits July 6, 2024 17:27
…t.js

Access payload outside Next.js generates a TypeError:
const { loadEnvConfig } = nextEnvImport;
        ^

TypeError: Cannot destructure property 'loadEnvConfig' of 'import_env.default' as it is undefined.
@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale due to lack of activity.

To keep the PR open, please indicate that it is still relevant in a comment below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant