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
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025