I keep on getting this error when trying to access my imported PNG images?
Would be a great help if anyone knows why (I have tried adding to the modules inside the assets file but it doesn’t save when building and reverts back to the original way)
I keep on getting this error when trying to access my imported PNG images?
Would be a great help if anyone knows why (I have tried adding to the modules inside the assets file but it doesn’t save when building and reverts back to the original way)
Hi, you will find the solution on this page, Troubleshooting section:
You must add the “public” specifier to the module declaration.
You should not add the specifier manually in the file, but in the file where you need to call it.
Example:
I have an image named “image_1.png” in a folder “assets/my_images”
In my code (where I need to import the image)
I will make the modules accessible by this code:
assets<public> := module: #adding <public> specifier
my_images<public> := module{} #adding <public> specifier
Then generate the code and in your verse file which contains your imported files, you will see that the specifier has been added.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.