helia-examples
helia-examples copied to clipboard
feat: add create-react-app-example
Currently blocked because create-react-app doesn't support monorepos.
In a monorepo dependencies are hoisted to the root, but CRA requires loading them from the project directory.
Failed to compile.
Module not found: Error: You attempted to import /Users/alex/Documents/Workspaces/ipfs-examples/helia-examples/node_modules/react-refresh/runtime.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
Refs: https://github.com/facebook/create-react-app/issues/1333
create react app is more painful than it's worth and I think we should skip adding this example entirely tbh.
there are enough other examples that users can throw into CRA if they want
Maybe I'm being optimistic but I like to think this will work one day..