App reviews, troubleshooting, and recommendations
I am trying to send the data from a form that I have in my app.jsx to a function within server.js, when I execute the function I get an error saying that it is not a function, I also did a test calling a function with "hello world" with the same result
app.admin.jsx
import { Test } from '../models/superMark.server';
async function handleSubmit(event) {
event.preventDefault();
const test = Test();
console.log(test);
}
superMark.server.js
export function Test() {
return "Hello world";
}
And I get app.admin.jsx:64 Uncaught (in promise) TypeError: (0 , import_superMark.Test) is not a function
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025