Nachdem ich unter OS X Probleme hatte sass überhaupt mit der installierten node Version zum laufen zu bekommen, hab ich es in einem ubuntu docker container versucht.
Die vollständige Fehlerausgabe und die verwendeten Versionen:
root@67dfe5e72cd3:~/warp-charger/software# nodejs --version
v10.19.0
root@67dfe5e72cd3:~/warp-charger/software# npx --version
6.14.4
root@67dfe5e72cd3:~/warp-charger/software# platformio --version
PlatformIO Core, version 5.1.1
root@67dfe5e72cd3:~/warp-charger/software# git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: web/package-lock.json
no changes added to commit (use "git add" and/or "git commit -a")
root@67dfe5e72cd3:~/warp-charger/software# platformio run -e warp --verbose
Warning! Ignore unknown configuration option `name` in section [env:warp]
Warning! Ignore unknown configuration option `display_name` in section [env:warp]
Warning! Ignore unknown configuration option `backend_modules` in section [env:warp]
Warning! Ignore unknown configuration option `frontend_modules` in section [env:warp]
Processing warp (platform: espressif32@3.1.1; board: esp32dev; framework: arduino; platform_packages: platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3253de879235e35b48be3b9cb656680837028687; lib_deps: https://github.com/Tinkerforge/ESPAsyncWebServer.git#warp-1.2.1, https://github.com/Tinkerforge/ArduinoJson#warp-1.2.1, https://github.com/Tinkerforge/strict_variant#warp-1.2.1, https://github.com/Tinkerforge/PangolinMQTT#warp-1.2.1, https://github.com/Tinkerforge/esp32-lib#warp-1.2.1; monitor_speed: 115200; build_type: release; build_flags: -Os; extra_scripts: pre:pio_hooks.py, post:merge_firmware_hook.py; upload_port: /dev/ttyUSB0; board_build.partitions: default_16MB_coredump.csv; name: warp; display_name: WARP Charger; backend_modules: Wifi
Mqtt
Sse
Http
Firmware Update
EVSE
SDM72DM
Authentication; frontend_modules: EVSE
SDM72DM
Wifi
Mqtt
System Start
Event Log
Firmware Update
Authentication
System End)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
npx: installed 323 in 21.098s
[16:16:43] Local modules not found in ~/warp-charger/software/esp32-brick/software/modules/backend/authentication/login_page_ignored
[16:16:43] Try running: npm install
Traceback (most recent call last):
File "prepare.py", line 22, in <module>
shutil.copy2("login_page_ignored/dist/login.html.h", "./login.html.h")
File "/usr/lib/python3.8/shutil.py", line 432, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.8/shutil.py", line 261, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 'login_page_ignored/dist/login.html.h'
[16:16:45] Using gulpfile ~/warp-charger/software/web/gulpfile.js
[16:16:45] Starting 'default'...
[16:16:45] Starting 'debug'...
[16:16:45] Starting 'copy-html'...
[16:16:46] Finished 'copy-html' after 1.06 s
[16:16:46] Starting 'sass'...
[16:16:50] Finished 'sass' after 3.52 s
[16:16:50] Starting 'bundle-js'...
[16:16:56] { [TypeScript error: /root/warp-charger/software/web/src/main.ts(93,21): Error TS2339: Property 'assign' does not exist on type 'ObjectConstructor'.]
message:
'/root/warp-charger/software/web/src/main.ts(93,21): Error TS2339: Property \'assign\' does not exist on type \'ObjectConstructor\'.',
fileName: '/root/warp-charger/software/web/src/main.ts',
line: 93,
column: 21,
name: 'TypeScript error' }
[16:16:56] { [TypeScript error: /root/warp-charger/software/web/src/main.ts(107,21): Error TS2339: Property 'assign' does not exist on type 'ObjectConstructor'.]
message:
'/root/warp-charger/software/web/src/main.ts(107,21): Error TS2339: Property \'assign\' does not exist on type \'ObjectConstructor\'.',
fileName: '/root/warp-charger/software/web/src/main.ts',
line: 107,
column: 21,
name: 'TypeScript error' }
[16:16:56] { [TypeScript error: /root/warp-charger/software/web/src/ts/modules/evse.ts(194,13): Error TS2322: Type 'string' is not assignable to type 'boolean'.]
message:
'/root/warp-charger/software/web/src/ts/modules/evse.ts(194,13): Error TS2322: Type \'string\' is not assignable to type \'boolean\'.',
fileName: '/root/warp-charger/software/web/src/ts/modules/evse.ts',
line: 194,
column: 13,
name: 'TypeScript error' }
[16:16:56] { [TypeScript error: /root/warp-charger/software/web/src/ts/modules/evse.ts(239,25): Error TS7006: Parameter 'content' implicitly has an 'any' type.]
message:
'/root/warp-charger/software/web/src/ts/modules/evse.ts(239,25): Error TS7006: Parameter \'content\' implicitly has an \'any\' type.',
fileName: '/root/warp-charger/software/web/src/ts/modules/evse.ts',
line: 239,
column: 25,
name: 'TypeScript error' }
[16:16:56] { [TypeScript error: /root/warp-charger/software/web/src/ts/modules/evse.ts(239,34): Error TS7006: Parameter 'filename' implicitly has an 'any' type.]
message:
'/root/warp-charger/software/web/src/ts/modules/evse.ts(239,34): Error TS7006: Parameter \'filename\' implicitly has an \'any\' type.',
fileName: '/root/warp-charger/software/web/src/ts/modules/evse.ts',
line: 239,
column: 34,
name: 'TypeScript error' }
[16:16:56] { [TypeScript error: /root/warp-charger/software/web/src/ts/modules/evse.ts(239,44): Error TS7006: Parameter 'contentType' implicitly has an 'any' type.]
message:
'/root/warp-charger/software/web/src/ts/modules/evse.ts(239,44): Error TS7006: Parameter \'contentType\' implicitly has an \'any\' type.',
fileName: '/root/warp-charger/software/web/src/ts/modules/evse.ts',
line: 239,
column: 44,
name: 'TypeScript error' }
[16:16:56] { [TypeScript error: /root/warp-charger/software/web/src/ts/modules/sdm72dm.ts(53,47): Error TS2339: Property 'fill' does not exist on type 'any[]'.]
message:
'/root/warp-charger/software/web/src/ts/modules/sdm72dm.ts(53,47): Error TS2339: Property \'fill\' does not exist on type \'any[]\'.',
fileName: '/root/warp-charger/software/web/src/ts/modules/sdm72dm.ts',
line: 53,
column: 47,
name: 'TypeScript error' }
[16:16:56] { [TypeScript error: /root/warp-charger/software/web/src/ts/modules/sdm72dm.ts(88,47): Error TS2339: Property 'fill' does not exist on type 'any[]'.]
message:
'/root/warp-charger/software/web/src/ts/modules/sdm72dm.ts(88,47): Error TS2339: Property \'fill\' does not exist on type \'any[]\'.',
fileName: '/root/warp-charger/software/web/src/ts/modules/sdm72dm.ts',
line: 88,
column: 47,
name: 'TypeScript error' }
[16:16:56] { [TypeScript error: /root/warp-charger/software/web/src/ts/modules/sdm72dm.ts(187,47): Error TS2339: Property 'fill' does not exist on type 'any[]'.]
message:
'/root/warp-charger/software/web/src/ts/modules/sdm72dm.ts(187,47): Error TS2339: Property \'fill\' does not exist on type \'any[]\'.',
fileName: '/root/warp-charger/software/web/src/ts/modules/sdm72dm.ts',
line: 187,
column: 47,
name: 'TypeScript error' }
[16:16:56] { [TypeScript error: /root/warp-charger/software/web/src/ts/modules/wifi.ts(91,113): Error TS2345: Argument of type 'string | boolean' is not assignable to parameter of type 'boolean'.
Type 'string' is not assignable to type 'boolean'.]
message:
'/root/warp-charger/software/web/src/ts/modules/wifi.ts(91,113): Error TS2345: Argument of type \'string | boolean\' is not assignable to parameter of type \'boolean\'.\n Type \'string\' is not assignable to type \'boolean\'.',
fileName: '/root/warp-charger/software/web/src/ts/modules/wifi.ts',
line: 91,
column: 113,
name: 'TypeScript error' }
[16:17:07] Finished 'bundle-js' after 17 s
[16:17:07] Finished 'debug' after 22 s
[16:17:07] Starting 'embed'...
[16:17:07] 'embed' errored after 49 ms
[16:17:07] Error: spawn python ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
[16:17:07] 'default' errored after 22 s
FileNotFoundError: [Errno 2] No such file or directory: 'web/dist/index.html.h':
File "/usr/local/lib/python3.8/dist-packages/platformio/builder/main.py", line 175:
env.SConscript(item, exports="env")
File "/root/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Script/SConscript.py", line 591:
return _SConscript(self.fs, *files, **subst_kw)
File "/root/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Script/SConscript.py", line 280:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/root/warp-charger/software/pio_hooks.py", line 246:
main()
File "/root/warp-charger/software/pio_hooks.py", line 244:
shutil.copy2("web/dist/index.html.h", "src/index.html.h")
File "/usr/lib/python3.8/shutil.py", line 432:
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.8/shutil.py", line 261:
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
=========================================================================================== [FAILED] Took 46.18 seconds ===========================================================================================
root@67dfe5e72cd3:~/warp-charger/software#