SKLINET / strapi-plugin-tinymce

11 stars 18 forks source link

Cannot assign to 'current' because it is a read-only property #1

Closed FieldMarshallVague closed 2 years ago

FieldMarshallVague commented 2 years ago

Hi there,

I'm trying to add the package to my strapi install, but get the above error when I build (immediately following the install).

I'm using Strapi 4.3.8 with strapi-plugin-package 1.0.0. Node is 16.17.0 and npm is 8.15.0.

I've cleared .cache folder and rebuilt, but still problem appears.

It seems to be due to a ref being assigned a null. This can maybe be avoided by using 'string | null' or similar as the type for that ref.

FieldMarshallVague commented 2 years ago

Sorry this doesn't seem to be related to your plugin, it still persists when I remove it.

Sklico commented 2 years ago

Hi @FieldMarshallVague, thanks for info, if I understand it properly, can we close this issue ?

Thanks

FieldMarshallVague commented 2 years ago

Yes, sorry for confusion. It was a coincidence (I'm still not sure why, but that's not your problem! :)

FieldMarshallVague commented 2 years ago

BTW, my issue was due to something in Strapi core, which appeared due to adding a package (I'd done a manual fix to a node dependency, which was overwritten by the NPM install process). It's not related to this package or repo, I just put it here for completeness.

https://github.com/strapi/strapi/issues/12960

That thread includes the manual fix, but beware, it will get overwritten until they patch it.