I’m not sure, what is causing this error, but I would recommend to try out native amp as described here without the need to build apex.
I’m not sure, what is causing this error, but I would recommend to try out native amp as described here without the need to build apex.