I cannot add content to my collection that has a relation type

System Information
  • Strapi Version: 4.8.2
  • Operating System: Mac
  • Database:
  • Node Version: 18.0.0
  • NPM Version: 8.6.0
  • Yarn Version:

I created a collection of “poems” that has a relation of many-to-one to other collection “poet”. And, a manyTomany relation to other collection “tags”.

I can add content to “tags” collection. but when I want to add content to my poems collection it shows error that “something went wrong.”

in browser console the error is- “TypeError: s.split(”.").at is not a function. (In ‘s.split(".").at(-1)’, ‘s.split(".").at’ is undefined)"

When I remove the relation field, I can add content to poem collection normally. having a relation field is causing problem idk why???

someone please help…

Can you check the logs and paste them here, it seems to be a bug, it would be nice if you open a issue on Github.

@Anne_Franklin did you find any fix for this? I’m having the same error.

the relations work well in earlier version of Strapi. I installed maybe 4.0.2 and the relations were working as expected.

but it comes at the cost of coming across problems specific to that version that got solved in newer versions.

So, this is the solution, right?