Debugging - Trouble with React-Redux

I am working on the Frontend dev project: quote generator. First time using codepen and I am struggling to use React-Redux. I am getting an error in the browser console:

" Uncaught SyntaxError: The requested module ‘/-/use-sync-external-store@v1.2.0-nObtrbhT9AtrsvWQs6X4/dist=es2019,mode=imports/unoptimized/shim/index.js’ does not provide an export named ‘useSyncExternalStore’ (at react-redux.js:1:9)"

My react component is not loading into the DOM. I am still working on the details of the project, but I just want to be able to get the libraries working. Any help is appreciated. Thank you.

Codepen link: https://codepen.io/Enen-A/pen/zYmWObd

Try using https://esm.sh for all the imports.

Thank you for your response.

I am still having trouble because I am not very versed in this. Are redux, and redux-react packages available in esm.sh? I cannot seem to find them with an initial search.

Yes, you should be able to just replace https://cdn.skypack.dev with https://esm.sh for the imports (keep the rest of the path as is).

Thank you very much. It is posting now.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.