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
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025