Freshly made project via rete-kit throws build error
CZ-DannyK opened this issue · comments
Hey,
i have just tried to make new project via rete-kit (1.4.0) with angular stack (16.1.5) and basically all plugins except non angular renderer ones and when i try to run via ng serve, i get this error:
Error: src/app/rete/3d.ts:218:14 - error TS4111: Property 'translateY' comes from an index signature, so it must be accessed with ['translateY'].
218 gridHelper.translateY(-320);
I am not sure if is it bug, misconfiguration (like strict) or something else.
I will appreciate help
Thanks,
Daniel
ng serve
or npm run start
?
Both
just checked on rete-kit v1.4.0 with angular 16, npm run start
works correctly
Nope, it doesnt work to me even with npm run start
, just checked again just to be sure. I can pack my generated project and post link here to check. I havent touch anything.
It seems related to Three.js in 3D template (which i can basically drop and remove referenced to get it working as i dont need that one - should be enough to get it working i hope).
what is your node.js version?
Node - v18.16.0
NPM - 9.5.1
OS?
Windows 11 Pro 22H2
it is something Windows specific. checked on windows 10, gives the same error
Ahh, ok, strange, but good to know i dont have some kind of magical bug that appears only on my end. I will try to check some info related to three.js, someone had to probably already be experiencing same.
I believe this is a TS issue.
Due to the issues with types in Angular project, I have defined my own types for three.js:
It extends Record<string, any>
, but only on Windows it requires them to be accessed with [''] (or TS ignores this error on Linux)
anyway, I found the issue
Great, i will probably wait till fix is released and then try to create new project (if it will be in within few days), otherwise i will try your fix.
Anyway thanks
released in 1.4.1
Cool, thank you :)