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

bug: screen-orientation plugin Cannot find name 'OrientationLockType' #7168

Closed
Story5 opened this issue Jan 4, 2024 · 2 comments
Closed

Comments

@Story5
Copy link

Story5 commented Jan 4, 2024

Bug Report

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 5.6.0
  @capacitor/core: 5.6.0
  @capacitor/android: 5.6.0
  @capacitor/ios: 5.6.0

Installed Dependencies:

  @capacitor/cli: 5.6.0
  @capacitor/core: 5.6.0
  @capacitor/android: 5.6.0
  @capacitor/ios: 5.6.0

[success] iOS looking great! 👌
[success] Android looking great! 👌

Platform(s)

  • ionic
  • web
  • ios
  • android

Current Behavior

Error: node_modules/@capacitor/screen-orientation/dist/esm/definitions.d.ts:3:18 
- error TS2552: Cannot find name 'OrientationLockType'. Did you mean 'OrientationType'?
3     orientation: OrientationLockType;

Expected Behavior

run success

Code Reproduction

npm install @capacitor/screen-orientation

Other Technical Details

npm --version output:10.2.3

node --version output:v20.10.0

pod --version output (iOS issues only):1.14.3

Additional Context

@jcesarmobile
Copy link
Member

typescript 5.2 removed the type, there is a PR in review to fix the issue, see ionic-team/capacitor-plugins#1914 for workarounds

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2024
Copy link

ionitron-bot bot commented Feb 7, 2024

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants