Open bernier opened 7 months ago
Hi @bernier! This looks like an issue with your lockfile. Can you try removing your package-lock.json
or yarn.lock
file and re-installing your node modules?
Because we publish FunctionSettings
and Section
to the unstable
tag, npm can try to use one of the stable versions instead, which is the cause of the error.
@MitchLillie I removed the lockfile, the node_modules folder and reinstalled
I still had the same issue.
This is the extension config within package-lock.json
"extensions/my-validation-settings": {
"version": "1.0.0",
"license": "UNLICENSED",
"dependencies": {
"@shopify/ui-extensions": "unstable",
"@shopify/ui-extensions-react": "unstable",
"react": "^18.0.0"
},
"devDependencies": {
"@types/react": "^18.0.0",
"react-reconciler": "0.29.0"
}
},
My app hosts other extensions; these extensions use:
"@shopify/ui-extensions": "2024.1.x",
"@shopify/ui-extensions-react": "2024.1.x"
It looks like all extensions need to use the same version, I had to change the other extension to unstable. Why have a config per extension if it's to force all of them to use the same version of a module?
@bernier, sorry for the delay. Are you still experiencing this issue?
Please list the package(s) involved in the issue, and include the version you are using
Describe the bug
Impossible to run the Shopify extension due to issue with Shopify node modules
Steps to reproduce the behavior:
npm run dev
Expected behavior
The @shopify/ui-extensions-react should export correctly