I am trying to publish my plugin but this piece of code is causing Bubble to throw the error “Action plugin: Some actions JS blocks cannot be parsed as JS code. Please check.”.
The piece of code works perfectly fine in my test app, but Bubble just won’t let me publish it. There are no errors in the console or in the code editor for action. It’s running as a server-side action.
If anyone has a minute can you please review the code and suggest any reasons why Bubble may not be able to publish it?
copy the method code into a text editor eg Sublime to get rid of any wonky chars
delete the action and create from scratch a new plug-in method (paste in the code from step 1) to get rid of any orphan references from the screwed up plug-in method.
I’m having the same issue, but there is literally nothing wrong with the plugin’s code. I have parsed the code in the browser, and also using nodejs, no syntax errors. In addition, all the plugin’s actions are working flawlessly when called from within my bubble application. And yet, I cannot publish the plugin and am limited to using it on test mode.
While I was investigating the problem, I also tried creating a new plugin and adding each action one by one, while publishing to see if I could identify which (if any) of them was causing the problem. I could not publish, even with only one server side action, with ZERO syntax errors. And before you say it’s my fault, this is not my first rodeo… I’m a senior developer by craft, and I would 100% know if there was a syntax error on the code.
Adding insult to injury, I’ve just tried to publish a private plugin with a mostly empty server side action, no syntax errors, and got the same error. I can say with confidence now that this is not a problem on the developer’s side.