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

Can't start with browser: "Ionic server" "Error cannot set/" #24

Open
Eminent-Web opened this issue Jul 1, 2021 · 0 comments
Open

Can't start with browser: "Ionic server" "Error cannot set/" #24

Eminent-Web opened this issue Jul 1, 2021 · 0 comments

Comments

@Eminent-Web
Copy link

Eminent-Web commented Jul 1, 2021

These Imports don't work. I can't implement from "node_modules"
If i change the Import of
import { CameraSource, CameraResultType, Photo } from '@capacitor/core';
to
import { CameraSource, CameraResultType, Photo } from '@capacitor/camera'; this will work.

The following import:
import { TextDetector, TextDetection, ImageOrientation } from 'cap-ml';
doesn't work either, im not sure why!? I also tried: "npm install cap-ml". But it doesn't change my error.

Error message:

Cannot find module 'cap-ml' or its corresponding type declarations.ts(2307)


The last thing that doesn't work is:
import { Plugins } from '@capacitor/core';
const { Camera } = Plugins;

Error message:

'Plugins' is deprecated.ts(6385)
global.d.ts(5, 4): The declaration was marked as deprecated here.


Versions:

Angular CLI: 12.1.0
Node: 14.17.1
Package Manager: npm 6.14.13
OS: win32 x64

Angular:
...

Package Version

@angular-devkit/architect 0.1201.0 (cli-only)
@angular-devkit/core 12.1.0 (cli-only)
@angular-devkit/schematics 12.1.0 (cli-only)
@schematics/angular 12.1.0 (cli-only)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant