App reviews, troubleshooting, and recommendations
Hi,
On creating a new app with Shopify CLI v 3.5.9, and after running npm update -g , I see an error in terminal:
18:35:20 │ remix │ 6:35:20 PM [vite] Internal server error: Unexpected identifier 'assert'
18:35:20 │ remix │ at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
18:35:20 │ remix │ at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18)
18:35:20 │ remix │ at callTranslator (node:internal/modules/esm/loader:416:14)
18:35:20 │ remix │ at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:422:30)
Tried to then install on Shopify dev and get the following:
I have deleted and recreated, then reinstalled, each time deleting from the partner console. Can anyone share a solution, Thanks for any help
Solved! Go to the solution
This is an accepted solution.
HEllo @Bizetools ,
The error you're encountering, "Unexpected identifier 'assert'", is related to a compatibility issue between the @shopify/shopify-app-remix package version and your Node.js version. Here's how to address it:
Understanding the Issue:
Solution:
Downgrade @shopify/shopify-app-remix:
JSON
// package.json
"dependencies": {
"@shopify/shopify-app-remix": "2.8.0"
}
Additional Tips:
By following these steps, you should be able to resolve the "Unexpected identifier 'assert'" error and proceed with developing your Shopify app using Remix.
This is an accepted solution.
HEllo @Bizetools ,
The error you're encountering, "Unexpected identifier 'assert'", is related to a compatibility issue between the @shopify/shopify-app-remix package version and your Node.js version. Here's how to address it:
Understanding the Issue:
Solution:
Downgrade @shopify/shopify-app-remix:
JSON
// package.json
"dependencies": {
"@shopify/shopify-app-remix": "2.8.0"
}
Additional Tips:
By following these steps, you should be able to resolve the "Unexpected identifier 'assert'" error and proceed with developing your Shopify app using Remix.
Thank you!! The combination of setting node to v 20 (was on 20.12.2) and @Shopify/shopify-app-remix": "^2.8.2 enabled creation and installation with out the error. Really appreciate your help
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024