Each of these commands return the following error:
An error occured while running Theme#initializing
TypeError: Invalid URL
Code: ERR_INVALID_URL
I have double- and triple checked that the ZIP file is in the correct place and have the right name.
I have also tried using an actual URL (example: "https://site.com/p-template-main.zip") for the ZIP file, but then I get stuck on this error message:
An error occured while running Theme#initializing
AssertionError: Trying to copy from a source that does not exist: /tmp/tmp-2996-1C69JxcFxPBY/undefined-p-template-main
Code: ERR_ASSERTION
As a last resort, I tried to temporarily make the GitHub repository public in order to use the theme, but then I receive a very long error message when the CLI is attempting to create a new Prismic project. I have uploaded the file here: prismic-theme-error.zip (14.1 KB)
Please help me figure out what I am doing wrong here, since it feels like I have tried every available command and approach in order to get this to work.
If your GitHub repo is private, you need to download the private repo as a zip file and pass the path to the zip file to the theme command --theme-url=../path/to/my/private-repo.zip
Still receiving the same error code for the zipped version:
prismic theme --theme-url=./p-template-main.zip --conf --ignore-conf
? Name your prismic repository: https://p-t-test.prismic.io
project folder [p-t-test]:
✖ An error occured while running Theme#initializing
TypeError: Invalid URL
Code: ERR_INVALID_URL
When trying the public GitHub repository I receive the same error as in the uploaded file in my original post.
Any idea to why these commands are failing?
I have double checked locations, URL:s and settings in GitHub. The zip would be the preferred way of doing this, but I have a hard time understanding the error I get.
I am not sure why you are getting the error. I can debug it if you share your project source code with me so I can push it to my Github and try to create a theme command. You can send me a private message.