You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
When compiling with these options in the platformio.ini file:
build_flags = -DREBUILD_HTML -DREBUILD_CONFIG -DCONFIG_PATH=configuration_own.json
the script that runs to generate code from config there are dependency issues which I can't manage to resolve.
For instance webpack seems to have been updated, can you please specify exact versions needed for all dependencies?
toolchain-xtensa @ 2.100300.210717 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Running npm ci...
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: styled-components@5.1.0
npm ERR! Found: react@16.14.0
npm ERR! node_modules/react
npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from mini-create-react-context@0.3.2
npm ERR! node_modules/mini-create-react-context
npm ERR! mini-create-react-context@"^0.3.0" from react-router@5.1.2
npm ERR! node_modules/react-router
npm ERR! react-router@"5.1.2" from react-router-dom@5.1.2
npm ERR! node_modules/react-router-dom
npm ERR! react-router-dom@"^5.1.2" from the root project
npm ERR! peer react@"*" from react-icons@4.2.0
npm ERR! node_modules/react-icons
npm ERR! react-icons@"^4.2.0" from the root project
npm ERR! 5 more (react-motion, react-router, react-router-dom, react-vis, styled-components)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-dom@">= 16.8.0" from styled-components@5.1.0
npm ERR! node_modules/styled-components
npm ERR! styled-components@"^5.1.0" from the root project
npm ERR! peer styled-components@">= 2" from babel-plugin-styled-components@1.10.7
npm ERR! node_modules/babel-plugin-styled-components
npm ERR! dev babel-plugin-styled-components@"^1.10.7" from the root project
npm ERR! 1 more (styled-components)
npm ERR! 1 more (styled-normalize)
npm ERR!
npm ERR! Conflicting peer dependency: react@18.2.0
npm ERR! node_modules/react
npm ERR! peer react@"^18.2.0" from react-dom@18.2.0
npm ERR! node_modules/react-dom
npm ERR! peer react-dom@">= 16.8.0" from styled-components@5.1.0
npm ERR! node_modules/styled-components
npm ERR! styled-components@"^5.1.0" from the root project
npm ERR! 2 more (babel-plugin-styled-components, styled-normalize)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\wallentinh.000\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\wallentinh.000\AppData\Local\npm-cache_logs\2022-11-08T07_35_39_094Z-debug-0.log
Running npx browserslist@latest --update-db...
Latest version: 1.0.30001431
Installed version: 1.0.30001040
Removing old caniuse-lite from lock file
Installing new caniuse-lite version
$ npm install caniuse-lite
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
Error: Command failed: npm install caniuse-lite
npm ERR! code ERESOLVE
npm ERR!
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: styled-components@5.1.0
npm ERR! While resolving: styled-components@5.1.0
npm ERR! Found: react@16.14.0
npm ERR! Found: react@16.14.0
npm ERR! node_modules/react
npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from mini-create-react-context@0.3.2
npm ERR! node_modules/react
npm ERR! node_modules/mini-create-react-context
npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from mini-create-react-context@0.3.2
npm ERR! mini-create-react-context@"^0.3.0" from react-router@5.1.2
npm ERR! node_modules/mini-create-react-context
npm ERR! node_modules/react-router
npm ERR! react-router@"5.1.2" from react-router-dom@5.1.2
npm ERR! mini-create-react-context@"^0.3.0" from react-router@5.1.2
npm ERR! node_modules/react-router-dom
npm ERR! react-router-dom@"^5.1.2" from the root project
npm ERR! node_modules/react-router
npm ERR! peer react@"" from react-icons@4.2.0
npm ERR! react-router@"5.1.2" from react-router-dom@5.1.2
npm ERR! node_modules/react-icons
npm ERR! node_modules/react-router-dom
npm ERR! react-icons@"^4.2.0" from the root project
npm ERR! react-router-dom@"^5.1.2" from the root project
npm ERR! 5 more (react-motion, react-router, react-router-dom, react-vis, styled-components)
npm ERR!
npm ERR! peer react@"" from react-icons@4.2.0
npm ERR! Could not resolve dependency:
npm ERR! node_modules/react-icons
npm ERR! peer react-dom@">= 16.8.0" from styled-components@5.1.0
npm ERR! react-icons@"^4.2.0" from the root project
npm ERR! node_modules/styled-components
npm ERR! 5 more (react-motion, react-router, react-router-dom, react-vis, styled-components)
npm ERR! peer styled-components@">= 2" from babel-plugin-styled-components@1.10.7
npm ERR!
npm ERR! node_modules/babel-plugin-styled-components
npm ERR! babel-plugin-styled-components@">= 1" from styled-components@5.1.0
npm ERR! Could not resolve dependency:
npm ERR! 1 more (the root project)
npm ERR! peer styled-components@"^4.0.0 || ^5.0.0" from styled-normalize@8.0.7
npm ERR! peer react-dom@">= 16.8.0" from styled-components@5.1.0
npm ERR! node_modules/styled-normalize
npm ERR! styled-normalize@"^8.0.7" from the root project
npm ERR! node_modules/styled-components
npm ERR! peer styled-components@">= 2" from babel-plugin-styled-components@1.10.7
npm ERR! 1 more (the root project)
npm ERR! node_modules/babel-plugin-styled-components
npm ERR!
npm ERR! babel-plugin-styled-components@">= 1" from styled-components@5.1.0
npm ERR! Conflicting peer dependency: react@18.2.0
npm ERR! 1 more (the root project)
npm ERR! node_modules/react
npm ERR! peer react@"^18.2.0" from react-dom@18.2.0
npm ERR! peer styled-components@"^4.0.0 || ^5.0.0" from styled-normalize@8.0.7
npm ERR! node_modules/react-dom
npm ERR! peer react-dom@">= 16.8.0" from styled-components@5.1.0
npm ERR! node_modules/styled-normalize
npm ERR! node_modules/styled-components
npm ERR! peer styled-components@">= 2" from babel-plugin-styled-components@1.10.7
npm ERR! styled-normalize@"^8.0.7" from the root project
npm ERR! node_modules/babel-plugin-styled-components
npm ERR! 1 more (the root project)
npm ERR! babel-plugin-styled-components@">= 1" from styled-components@5.1.0
npm ERR! 1 more (the root project)
npm ERR!
npm ERR! 2 more (styled-normalize, the root project)
npm ERR! Conflicting peer dependency: react@18.2.0
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! node_modules/react
npm ERR!
npm ERR! peer react@"^18.2.0" from react-dom@18.2.0
npm ERR! See C:\Users\wallentinh.000\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! node_modules/react-dom
npm ERR! peer react-dom@">= 16.8.0" from styled-components@5.1.0
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\wallentinh.000\AppData\Local\npm-cache_logs\2022-11-08T07_35_59_240Z-debug-0.log
at checkExecSyncError (node:child_process:871:11)
npm ERR! node_modules/styled-components
at Object.execSync (node:child_process:943:15)
at updatePackageManually (C:\Users\wallentinh.000\AppData\Local\npm-cache_npx\072487b38308305a\node_modules\update-browserslist-db\index.js:216:18)
at updateDB (C:\Users\wallentinh.000\AppData\Local\npm-cache_npx\072487b38308305a\node_modules\update-browserslist-db\index.js:281:5)
at Object. (C:\Users\wallentinh.000\AppData\Local\npm-cache_npx\072487b38308305a\node_modules\browserslist\cli.js:42:3)
npm ERR! peer styled-components@">= 2" from babel-plugin-styled-components@1.10.7
at Module._compile (node:internal/modules/cjs/loader:1159:14)
npm ERR! node_modules/babel-plugin-styled-components
npm ERR! babel-plugin-styled-components@">= 1" from styled-components@5.1.0
npm ERR! 1 more (the root project)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
npm ERR! 2 more (styled-normalize, the root project)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
Problem with npm install caniuse-lite call. Run it manually.
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\wallentinh.000\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\wallentinh.000\AppData\Local\npm-cache_logs\2022-11-08T07_35_59_240Z-debug-0.log
Running npm run build...
esp@1.0.0 build
webpack --mode=production
clean-webpack-plugin: options.output.path not defined. Plugin disabled...
[webpack-cli] TypeError: Cannot read properties of undefined (reading 'tapAsync')
at C:\Users\wallentinh.000\node_modules\html-webpack-inline-source-plugin\index.js:21:59
at Hook.eval [as call] (eval at create (C:\Users\wallentinh.000\node_modules\tapable\lib\HookCodeFactory.js:19:10), :102:1)
at Hook.CALL_DELEGATE [as _call] (C:\Users\wallentinh.000\node_modules\tapable\lib\Hook.js:14:14)
at Compiler.newCompilation (C:\Users\wallentinh.000\node_modules\webpack\lib\Compiler.js:1122:26)
at C:\Users\wallentinh.000\node_modules\webpack\lib\Compiler.js:1166:29
at Hook.eval [as callAsync] (eval at create (C:\Users\wallentinh.000\node_modules\tapable\lib\HookCodeFactory.js:33:10), :6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (C:\Users\wallentinh.000\node_modules\tapable\lib\Hook.js:18:14)
at Compiler.compile (C:\Users\wallentinh.000\node_modules\webpack\lib\Compiler.js:1161:28)
at C:\Users\wallentinh.000\node_modules\webpack\lib\Compiler.js:524:12
at Compiler.readRecords (C:\Users\wallentinh.000\node_modules\webpack\lib\Compiler.js:986:5)`
The text was updated successfully, but these errors were encountered:
When compiling with these options in the platformio.ini file:
build_flags = -DREBUILD_HTML -DREBUILD_CONFIG -DCONFIG_PATH=configuration_own.json
the script that runs to generate code from config there are dependency issues which I can't manage to resolve.
For instance webpack seems to have been updated, can you please specify exact versions needed for all dependencies?
This is how far I come, libraries needed:
lib_deps =
https://github.com/lorol/ESPAsyncWebServer
ESP8266 IoT Framework
LittleFS
When I add the build_flags option above I get these errors:
`CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 (4.0.1) > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Running npm ci...
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: styled-components@5.1.0
npm ERR! Found: react@16.14.0
npm ERR! node_modules/react
npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from mini-create-react-context@0.3.2
npm ERR! node_modules/mini-create-react-context
npm ERR! mini-create-react-context@"^0.3.0" from react-router@5.1.2
npm ERR! node_modules/react-router
npm ERR! react-router@"5.1.2" from react-router-dom@5.1.2
npm ERR! node_modules/react-router-dom
npm ERR! react-router-dom@"^5.1.2" from the root project
npm ERR! peer react@"*" from react-icons@4.2.0
npm ERR! node_modules/react-icons
npm ERR! react-icons@"^4.2.0" from the root project
npm ERR! 5 more (react-motion, react-router, react-router-dom, react-vis, styled-components)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-dom@">= 16.8.0" from styled-components@5.1.0
npm ERR! node_modules/styled-components
npm ERR! styled-components@"^5.1.0" from the root project
npm ERR! peer styled-components@">= 2" from babel-plugin-styled-components@1.10.7
npm ERR! node_modules/babel-plugin-styled-components
npm ERR! dev babel-plugin-styled-components@"^1.10.7" from the root project
npm ERR! 1 more (styled-components)
npm ERR! 1 more (styled-normalize)
npm ERR!
npm ERR! Conflicting peer dependency: react@18.2.0
npm ERR! node_modules/react
npm ERR! peer react@"^18.2.0" from react-dom@18.2.0
npm ERR! node_modules/react-dom
npm ERR! peer react-dom@">= 16.8.0" from styled-components@5.1.0
npm ERR! node_modules/styled-components
npm ERR! styled-components@"^5.1.0" from the root project
npm ERR! 2 more (babel-plugin-styled-components, styled-normalize)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\wallentinh.000\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\wallentinh.000\AppData\Local\npm-cache_logs\2022-11-08T07_35_39_094Z-debug-0.log
Running npx browserslist@latest --update-db...
Latest version: 1.0.30001431
Installed version: 1.0.30001040
Removing old caniuse-lite from lock file
Installing new caniuse-lite version
$ npm install caniuse-lite
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
Error: Command failed: npm install caniuse-lite
npm ERR! code ERESOLVE
npm ERR!
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: styled-components@5.1.0
npm ERR! While resolving: styled-components@5.1.0
npm ERR! Found: react@16.14.0
npm ERR! Found: react@16.14.0
npm ERR! node_modules/react
npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from mini-create-react-context@0.3.2
npm ERR! node_modules/react
npm ERR! node_modules/mini-create-react-context
npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from mini-create-react-context@0.3.2
npm ERR! mini-create-react-context@"^0.3.0" from react-router@5.1.2
npm ERR! node_modules/mini-create-react-context
npm ERR! node_modules/react-router
npm ERR! react-router@"5.1.2" from react-router-dom@5.1.2
npm ERR! mini-create-react-context@"^0.3.0" from react-router@5.1.2
npm ERR! node_modules/react-router-dom
npm ERR! react-router-dom@"^5.1.2" from the root project
npm ERR! node_modules/react-router
npm ERR! peer react@"" from react-icons@4.2.0
npm ERR! react-router@"5.1.2" from react-router-dom@5.1.2
npm ERR! node_modules/react-icons
npm ERR! node_modules/react-router-dom
npm ERR! react-icons@"^4.2.0" from the root project
npm ERR! react-router-dom@"^5.1.2" from the root project
npm ERR! 5 more (react-motion, react-router, react-router-dom, react-vis, styled-components)
npm ERR!
npm ERR! peer react@"" from react-icons@4.2.0
npm ERR! Could not resolve dependency:
npm ERR! node_modules/react-icons
npm ERR! peer react-dom@">= 16.8.0" from styled-components@5.1.0
npm ERR! react-icons@"^4.2.0" from the root project
npm ERR! node_modules/styled-components
npm ERR! 5 more (react-motion, react-router, react-router-dom, react-vis, styled-components)
npm ERR! peer styled-components@">= 2" from babel-plugin-styled-components@1.10.7
npm ERR!
npm ERR! node_modules/babel-plugin-styled-components
npm ERR! babel-plugin-styled-components@">= 1" from styled-components@5.1.0
npm ERR! Could not resolve dependency:
npm ERR! 1 more (the root project)
npm ERR! peer styled-components@"^4.0.0 || ^5.0.0" from styled-normalize@8.0.7
npm ERR! peer react-dom@">= 16.8.0" from styled-components@5.1.0
npm ERR! node_modules/styled-normalize
npm ERR! styled-normalize@"^8.0.7" from the root project
npm ERR! node_modules/styled-components
npm ERR! peer styled-components@">= 2" from babel-plugin-styled-components@1.10.7
npm ERR! 1 more (the root project)
npm ERR! node_modules/babel-plugin-styled-components
npm ERR!
npm ERR! babel-plugin-styled-components@">= 1" from styled-components@5.1.0
npm ERR! Conflicting peer dependency: react@18.2.0
npm ERR! 1 more (the root project)
npm ERR! node_modules/react
npm ERR! peer react@"^18.2.0" from react-dom@18.2.0
npm ERR! peer styled-components@"^4.0.0 || ^5.0.0" from styled-normalize@8.0.7
npm ERR! node_modules/react-dom
npm ERR! peer react-dom@">= 16.8.0" from styled-components@5.1.0
npm ERR! node_modules/styled-normalize
npm ERR! node_modules/styled-components
npm ERR! peer styled-components@">= 2" from babel-plugin-styled-components@1.10.7
npm ERR! styled-normalize@"^8.0.7" from the root project
npm ERR! node_modules/babel-plugin-styled-components
npm ERR! 1 more (the root project)
npm ERR! babel-plugin-styled-components@">= 1" from styled-components@5.1.0
npm ERR! 1 more (the root project)
npm ERR!
npm ERR! 2 more (styled-normalize, the root project)
npm ERR! Conflicting peer dependency: react@18.2.0
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! node_modules/react
npm ERR!
npm ERR! peer react@"^18.2.0" from react-dom@18.2.0
npm ERR! See C:\Users\wallentinh.000\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! node_modules/react-dom
npm ERR! peer react-dom@">= 16.8.0" from styled-components@5.1.0
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\wallentinh.000\AppData\Local\npm-cache_logs\2022-11-08T07_35_59_240Z-debug-0.log
npm ERR! node_modules/styled-components
at Object.execSync (node:child_process:943:15)
at updatePackageManually (C:\Users\wallentinh.000\AppData\Local\npm-cache_npx\072487b38308305a\node_modules\update-browserslist-db\index.js:216:18)
at updateDB (C:\Users\wallentinh.000\AppData\Local\npm-cache_npx\072487b38308305a\node_modules\update-browserslist-db\index.js:281:5)
at Object. (C:\Users\wallentinh.000\AppData\Local\npm-cache_npx\072487b38308305a\node_modules\browserslist\cli.js:42:3)
npm ERR! peer styled-components@">= 2" from babel-plugin-styled-components@1.10.7
at Module._compile (node:internal/modules/cjs/loader:1159:14)
npm ERR! node_modules/babel-plugin-styled-components
npm ERR! babel-plugin-styled-components@">= 1" from styled-components@5.1.0
npm ERR! 1 more (the root project)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
npm ERR! 2 more (styled-normalize, the root project)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
Problem with
npm install caniuse-lite
call. Run it manually.npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\wallentinh.000\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\wallentinh.000\AppData\Local\npm-cache_logs\2022-11-08T07_35_59_240Z-debug-0.log
Running npm run build...
clean-webpack-plugin: options.output.path not defined. Plugin disabled...
[webpack-cli] TypeError: Cannot read properties of undefined (reading 'tapAsync')
at C:\Users\wallentinh.000\node_modules\html-webpack-inline-source-plugin\index.js:21:59
at Hook.eval [as call] (eval at create (C:\Users\wallentinh.000\node_modules\tapable\lib\HookCodeFactory.js:19:10), :102:1)
at Hook.CALL_DELEGATE [as _call] (C:\Users\wallentinh.000\node_modules\tapable\lib\Hook.js:14:14)
at Compiler.newCompilation (C:\Users\wallentinh.000\node_modules\webpack\lib\Compiler.js:1122:26)
at C:\Users\wallentinh.000\node_modules\webpack\lib\Compiler.js:1166:29
at Hook.eval [as callAsync] (eval at create (C:\Users\wallentinh.000\node_modules\tapable\lib\HookCodeFactory.js:33:10), :6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (C:\Users\wallentinh.000\node_modules\tapable\lib\Hook.js:18:14)
at Compiler.compile (C:\Users\wallentinh.000\node_modules\webpack\lib\Compiler.js:1161:28)
at C:\Users\wallentinh.000\node_modules\webpack\lib\Compiler.js:524:12
at Compiler.readRecords (C:\Users\wallentinh.000\node_modules\webpack\lib\Compiler.js:986:5)`
The text was updated successfully, but these errors were encountered: