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

Write content process.env.node_env === 'Development' to report an error #971

Closed
3 tasks done
n1203 opened this issue Jul 12, 2022 · 1 comment
Closed
3 tasks done
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@n1203
Copy link

n1203 commented Jul 12, 2022

Describe the bug

The relevant expression of the environment variables in the document will cause the page to report an error cannot be displayed

Reproduction

mkdir docs && echo '# Hello VitePress process.env.NODE_ENV === 'development' ' > docs/index.md

Expected behavior

image

System Info

System:
    OS: macOS 12.4
    CPU: (10) x64 Apple M1 Pro
    Memory: 30.27 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 14.20.0 - /usr/local/bin/node
    Yarn: 1.22.18 - /usr/local/bin/yarn
    npm: 6.14.17 - /usr/local/bin/npm
  Browsers:
    Chrome: 103.0.5060.114
    Safari: 15.5

Additional context

**Example**
General transmission:  `process.env.NODE_ENV === 'development'`

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
@n1203 n1203 added the bug: pending triage Maybe a bug, waiting for confirmation label Jul 12, 2022
@brc-dd
Copy link
Member

brc-dd commented Jul 12, 2022

Was fixed by #888. It'll be there in the next release.

@brc-dd brc-dd closed this as completed Jul 12, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

No branches or pull requests

2 participants