Skip to content

not working with latest version of deepar #1

@snolan-ethika

Description

@snolan-ethika

so i was testing this out with v5.1.1 (and this angular example is awesome btw), but when I went to my project (and i was comparing this repo with my stuff) which has the same setup, I was getting an error on mine, but not this repo. and realized the main difference is with the versions.

so v5.1.1 works great, but NOT with v5.6.19

so if you update to latest (below) you'll see that the app doesn't compile

{
  "name": "deepar",
  "version": "5.6.19",
  "description": "The official DeepAR Web SDK",
  "main": "js/deepar.esm.js",
  "jsdelivr": "js/deepar.js",
  "typings": "js/types/index.d.ts",
  "keywords": [
    "deepar",
    "web",
    "sdk",
    "ar",
    "effects",
    "bacground removal",
    "bacground replacement",
    "background blur",
    "AR mini-games"
  ],
  "author": "deepar",
  "license": "SEE LICENSE IN LICENSE.txt"
}

errors:

Error: node_modules/deepar/js/types/DeepAR.d.ts:1:23 - error TS2688: Cannot find type definition file for 'dom-mediacapture-transform'.

1 /// <reference types="dom-mediacapture-transform" />
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/deepar/js/types/DeepAR.d.ts:141:22 - error TS2304: Cannot find name 'MediaStreamAudioTrack'.

141         audioTrack?: MediaStreamAudioTrack;
                         ~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/deepar/js/types/dynamicModules/mediaPipe/index.d.ts:1:49 - error TS2307: Cannot find module '@mediapipe/tasks-vision' or its corresponding type declarations.

1 export { FilesetResolver, ImageSegmenter } from "@mediapipe/tasks-vision";
                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/deepar/js/types/dynamicModules/xzimg/index.d.ts:1:60 - error TS2307: Cannot find module '../../../../xzimg/xzimg.esm' or its corresponding type declarations.

1 export { Foot, Segmentation, VideoManager, Geometry } from "../../../../xzimg/xzimg.esm";

thanks, snolan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions