electric
electric copied to clipboard
Unable to build site after upgrading to v3.0.4
After upgrading electric to v3.0.4, I could not get the Frontend Internship Training site to build and run a local server. Whenever I ran electric build
, I would get the error shown in the attached log.txt and the index.html file would not generate in the dist folder. The site would build and the server would run without any issues before when using electric-cli v2.2.0 or v2.3.3.
log.txt
Steps to Reproduce:
- Clone the Frontend Internship Training site repo locally: https://github.com/jonmak08/front-end-internship-training.git
-
cd
into the cloned repo and runnpm install
- Run
electric build
(while using v3.0.4)
Expected Result:
The files in the src folder compile without any errors. When running electric server
, the locally served website will look like this: https://hosting-frontendinternshiptraining.wedeploy.io
Actual Result The files don't finish compiling and the error shown in the attached log.txt file would appear. The website would then display as a file directory.
There are many changes in this major release, I recommend checking the diff from the PRs listed here: https://github.com/electricjs/electric/issues/108