Running yarn run webpack-dev
is unsuccessful - it returns an error:
Versions:
Log:
ERROR in /srv/pim/web/bundles/pimui/js/view/base.ts
./web/bundles/pimui/js/view/base.ts
[tsl] ERROR in /srv/pim/web/bundles/pimui/js/view/base.ts(193,3)
TS2416: Property 'render' in type 'BaseView' is not assignable to the same property in base type 'View'.
Type '() => View' is not assignable to type '() => this'.
ERROR in /srv/pim/web/bundles/pimui/js/view/base.ts
./web/bundles/pimui/js/view/base.ts
[tsl] ERROR in /srv/pim/web/bundles/pimui/js/view/base.ts(193,3)
TS2416: Property 'render' in type 'BaseView' is not assignable to the same property in base type 'View
Type '() => View' is not assignable to type '() => this'.
Type 'View' is not assignable to type 'this'.
This error appears consistently in our pipelines since 2021-02-03 and is not connected to any change in PIM version.
We are also seeing the same on a 3.2.x Akeneo
Yes, I forgot to mention it is on version 3.2.x. Info added.
Locking the "@types/backbone": "1.4.5" version in package.json fixed the issue. Probably an update from types/backbone introduced the issue.
Locking the "@types/backbone": "1.4.5" version in package.json fixed the issue. Probably an update from types/backbone introduced the issue.
Thanks! Indeed, it seems to work.
The enterprise version 4.0.91
is also affected by this.
As suggested by @joachimVT, locking the version fixes the problem.
Most helpful comment
Locking the "@types/backbone": "1.4.5" version in package.json fixed the issue. Probably an update from types/backbone introduced the issue.