helia-examples icon indicating copy to clipboard operation
helia-examples copied to clipboard

feat: add create-react-app-example

Open achingbrain opened this issue 2 years ago • 2 comments

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

achingbrain avatar Apr 05 '23 11:04 achingbrain

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

SgtPooki avatar Jul 27 '23 23:07 SgtPooki

Maybe I'm being optimistic but I like to think this will work one day..

achingbrain avatar Jul 28 '23 14:07 achingbrain