Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

fix: 'import.meta' warning ts(1343),ts(2339) #126

Merged
merged 1 commit into from
Oct 8, 2023
Merged

fix: 'import.meta' warning ts(1343),ts(2339) #126

merged 1 commit into from
Oct 8, 2023

Conversation

likui628
Copy link
Collaborator

@likui628 likui628 commented Oct 8, 2023

  • The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'.ts(1343)
  • Property 'env' does not exist on type 'ImportMeta'.ts(2339)

General

✏️ Mark the necessary items without changing the structure of the PR template.

  • Pull request template structure not broken

Type

ℹ️ What types of changes does your code introduce?

👉 Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'.ts(1343)

Property 'env' does not exist on type 'ImportMeta'.ts(2339)
@likui628 likui628 merged commit 7c081ff into master Oct 8, 2023
@likui628 likui628 deleted the tsconfig branch October 8, 2023 03:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant