Skip to content

Property 'prototype' is missing in type ArrayDataProvider... #89

@Lugghawk

Description

@Lugghawk

Hi. Encountering the following error while trying ojet build:

...
Compile application typescript
Running before_app_typescript hook.
Typescript Error: web/ts/appController.ts:65:5 - Property 'prototype' is missing in type 'ArrayDataProvider<string, CoreRouterState<CoreRouterDetail, { [key: string]: any; }>>' but required in type 'DataProvider<string, CoreRouterState<CoreRouterDetail, { [key: string]: any; }>>'.
Error: Compile application typescript failed

I've been able to create a small project that reproduces this with the following:

$ ojet --version
Oracle JET Command Line Interface, version: 13.0.0
$ node --version
v14.20.1
$ npm --version
6.14.17

Creating a new typescript template, and install jest 29.2.0.

$ ojet create broken --typescript --template=navbar-ts
$ cd broken/
$ # `ojet build` here works fine.
...
$ npm i --save-dev jest@29.2.0
...
$ ojet build
<error happens>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions