new components are not generated in a shell file, i’m working with generating custom reports and i always encountered with this error ```
Module not found: Can’t resolve ‘./D2App/app’ in ‘/home/imsangi/Desktop/ims-custom-reports/.d2/shell/src’
This error always appears once i try to start a project with `yarn start`
can anyone help me please!
Thanks @IDDI_MSANGI! Unfortunately my first idea about the possible issue was not supported I was wondering if there were duplicate versions of @dhis2/app-runtime in the dependencies.
Would you mind sharing your code through GitHub so I can check it out and maybe try running it on my computer?
Also, what happens when you press the ‘X’ at the top right of the error screen to close it and go back to the app?
Hi @IDDI_MSANGI I believe I have a resolution for you! The ‘Cannot get cached sections’ error was being thrown in some app-runtime code (that I was responsible for ) but it’s fixed now! Upgrading to @dhis2/app-runtime@^3.2.4 should fix the issue for you
Hi @kpvandivier ! Thank you for your responce, After press the ‘X’ at the top right of the error screen to close it, my app running fine but it normally happen i don’t know why?
That error screen is shown by React in development mode (when the app is built and deployed, it wouldn’t show that error in production) – this error was a minor thing in the background that didn’t affect anything else in the app thankfully, so the error screen was shown but the rest of the app could keep working once the screen was closed.
When you update the @dhis2/app-runtime dependency, you might run into something funny where you get errors like Data context must be initialized -- add a DataProvider to your application, and if you run yarn why @dhis2/app-runtime you’ll see there are two versions installed – if that happens, you can fix it by running npx yarn-deduplicate yarn.lock && yarn in your app directory, which will remove the duplicate version which is causing the issue, then sort out the dependencies Good luck!