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

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

Open
Lugghawk opened this issue Oct 18, 2022 · 1 comment
Open

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

Lugghawk opened this issue Oct 18, 2022 · 1 comment

Comments

@Lugghawk
Copy link

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 [email protected]
...
$ ojet build
<error happens>
@Lugghawk
Copy link
Author

Found a possible solution that seemed to work for me for the time being:

npm i --save-dev '@types/[email protected]

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