I’m trying to get started with play.js for Reactjs, but I’m running into difficulties understanding how I setup imports from root. Relative linking looks to work for me, but I’m unable
I’m running my project on an iPad. My project is in /workspace/play.js/React/HelloWorld.
import HelloWorld from ‘HelloWorld.jsx’; // <- This fails
import HelloWorld from ‘./HelloWorld.jsx’; //<- This succeeds
ERROR in ./src/app.jsx
Module not found: Error: Can’t resolve ‘HelloWorld.jsx’ in ‘/private/var/mobile/Containers/Shared/AppGroup/2081A045-899D-4D8F-96D2-63168CB30063/File Provider Storage/workspace/play.js/React/HelloWorld/src’