Closed maxgerhardt closed 3 years ago
I think my website build issue is described here: https://stackoverflow.com/a/60136898/5296568
Thanks for digging into this, @maxgerhardt! Will try to take a look when I have more time.
Should be fixed by #659, thanks to @rjsachse!
Hmm I guess the website trouble building part is not fixed. Is there any reason not to upgrade to gulp 4 as is suggested in the stackoverflow entry by maxgerhardt? I had to change the gulpfile a bit, but then it seems to work.
You actually managed to build the website? What exact files did you use / replace?
Well I updated to gulp 4 and adjusted the gulpfile.js a bit and it runs through sucessfully. Though I cannot test whether it really works, since the firmware build does not work for me, it throws a bunch of errors.
Can you open another issue for that with the exact errors being thrown, and your PlatformIO core version (shown in the PIO home start screen in VSCode)? You can also open another issue for the website building and the fixed gulpfile I guess.
Found a solution by now, adding lib_compat_mode=strict
as suggested in the forum post which was posted above.
Describe the bug
When downloading the repository and attemping to build an environment, e.g. for
nodemcuv2
, the firmware build as well as the website build are broken.Steps to reproduce
Expected behavior
The webpage and firmware can be built.
Setup information
pio --version
:PlatformIO, version 5.0.1
npm --version
: 6.14.4python --version
: 3.7.6node --version
: v12.16.2Firmware version
Master commit 27a1a6ac747eacc867cea8286fc691ce7e699e55
Output of http://milight-hub.local/about
Not applicable since uncompilable and unrunnable
Output of http://milight-hub.local/settings
Not applicable since uncompilable and unrunnable
Additional context
I was made of this project and issue due to a user in our PlatformIO community forum reporting this build error (https://community.platformio.org/t/valueerror-invalid-simple-block-9d5f56fba1/15559/5?u=maxgerhardt).
Your firmware is uncompilable (in the latest PIO Core 5) because of these two library definitions:
https://github.com/sidoh/esp8266_milight_hub/blob/27a1a6ac747eacc867cea8286fc691ce7e699e55/platformio.ini#L17-L22
Regarding
sidoh/WiFiManager#cmidgley
andratkins/RGBConverter@07010f2
.Since PIO core 5, a new library repository system with a library owner syntax was established (
owner/libraryname
). See documentation. Since neither theWiFiManager
nor theRGBConverter
libraries are registered by their owners in the PIO library registry, installing them fails.Changing the syntax to just pull them from the github repo by using
results in the firmware being able to be compiled.
Website building is still broken; Since I'm not a webdev, no idea why it can't build
\web\node_modules\graceful-fs\fs.js
.