When I run yarn start on my newly created app i get this error
C:\DHIS2\dhis-app>yarn start
yarn run v1.22.22
$ d2-app-scripts start
Generating internationalization strings…
No i18n updates found!
Bootstrapping local appShell…
A local appShell exists, skipping bootstrap. Use --force to update.
Building app dhis-app…
Generating manifests…
Starting development server…
The app dhis-app is now available on port 3000
Please check that you are giving access to this folder and file. It looks like an authority issue here, you might want to run on a privileged terminal.
Initially, I faced this issue when creating the app. I resolved it by deleting the findYarnLock function in the paths.js file because I couldn’t locate the Yarn lock file to delete, as suggested in the issue by @Gassim.
However, now I’m encountering this issue that we’re currently trying to solve when running the app.
It’s possible that there’s an environment issue causing this error, are you using Windows? If so, please give this option a try and see if it helps: Develop your DHIS2 Web Apps in WSL Environment
Hi @Gassim ,
Thanks a lot! Installing it on WSL worked perfectly. Could you point me to a resource where I can understand in detail the differences between the web apps and the cluster, specifically the app that runs on port 3000 and the one that runs on port 8080?
Great, could we mark that post as a solution to the main topic post?
Clusters are the dhis2 instances that are running on your system. You can run several clusters with different versions and databases. Each cluster will have to use a unique port (3000,8080,8082…etc)
The web app can connect to more than one cluster at a time, and the point is that you will be able to test on more than one version.