Closed Roos-AID closed 3 years ago
Issue resolved, removed ESP8266 IoT Framework from libdeps and let PIO do a reinstall of the lib. Cause was the run of npm audit fix -force after npm ci. This breaks the dependencies.
Still many outdated modules and vulnerabilities remain, fixing requires changes to this library.
When NPM RUN BUILD is executed, I get Documents/PlatformIO/Projects/ModbusRTC_UI/.pio/libdeps/NodeMCU/ESP8266 IoT Framework/node_modules/compression-webpack-plugin/dist/index.js:283 compilation.hooks.processAssets.tapPromise({ ^
TypeError: Cannot read property 'tapPromise' of undefined
The consequence is that compile with build_flags = -DREBUILD_CONFIG -DREBUILD_HTML -DREBUILD_DASHBOARD -DCONFIG_PATH=configuration2.json -DDASHBOARD_PATH=dashboard2.json does not update the Web interface, the new configuration parameters do not show on the website.
I can't find why, when I check NPM list I believe all libs are at correct version.
ESP8266 IoT Framework $ npm list esp@1.0.0 /Users/xxxxxx/Documents/PlatformIO/Projects/ModbusRTC_UI/.pio/libdeps/NodeMCU/ESP8266 IoT Framework ├── @babel/core@7.9.0 ├── @babel/preset-env@7.9.5 ├── @babel/preset-react@7.9.4 ├── babel-loader@8.1.0 ├── babel-plugin-styled-components@1.10.7 ├── clean-webpack-plugin@3.0.0 ├── compression-webpack-plugin@7.1.2 ├── css-loader@2.1.1 ├── eslint-plugin-react@7.20.3 ├── eslint@7.4.0 ├── event-hooks-webpack-plugin@2.1.6 ├── history@4.10.1 ├── html-loader@0.5.5 ├── html-webpack-inline-source-plugin@0.0.10 ├── html-webpack-plugin@3.2.0 ├── image-webpack-loader@4.6.0 ├── mini-css-extract-plugin@0.5.0 ├── preact@10.4.0 ├── prop-types@15.7.2 ├── react-feather@2.0.4 ├── react-router-dom@5.1.2 ├── react-vis@1.11.7 ├── styled-components@5.1.0 ├── styled-normalize@8.0.7 ├── url-loader@1.1.2 ├── webpack-cli@3.3.11 ├── webpack-dev-server@3.11.2 └── webpack@4.42.1