All things Shopify and commerce
Hello everyone,
I'm encountering an issue while trying to import a file in my Shopify app. Specifically, I get the following error message:
Server-only module referenced by client: '../db.server' imported by route 'app/routes/app.import.jsx'
It seems like there's a conflict between server-side and client-side modules. I’ve checked my import paths and tried a few things, but I haven’t been able to resolve it.
Has anyone faced a similar issue or have any suggestions on how to fix this? Any guidance would be greatly appreciated!
Thank you!
Solved! Go to the solution
This is an accepted solution.
I have fixed this issue on my end. Thanks
This is an accepted solution.
I have fixed this issue on my end. Thanks
Hey, how did you solve it? I'm experiencing the same issue
@josafatgarciasaDo not import shopify.server until you fetch the data using the Loader Function.
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024