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

Fix process is not defined issue #230

Closed
floydnant opened this issue Jan 3, 2023 · 0 comments · Fixed by #235
Closed

Fix process is not defined issue #230

floydnant opened this issue Jan 3, 2023 · 0 comments · Fixed by #235
Labels
web Issue related to the front end

Comments

@floydnant
Copy link
Owner

floydnant commented Jan 3, 2023

Occurrences

  • [Runtime error] when running component tests which depend on files that import the environment-info.ts
  • [Type error] when building the app

Potential solutions

  • [Runtime error] replacing the problematic file with one that doesn't throw, leveraging Angular's fileReplacement mechanism

  • [Type error] can be suppressed just by adding env.d.ts with

    // eslint-disable-next-line no-var
    declare var process: {
        env: Record<string, string>
    }
@floydnant floydnant added the web Issue related to the front end label Jan 3, 2023
@floydnant floydnant linked a pull request Jan 7, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web Issue related to the front end
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant