Stencil Push Module Not Working
Expected behavior
Repack and Upload the theme to Bigcommerce
Actual behavior
When I try to push the theme, it produces this error not ok -- Error: Cannot find module 'webpack' Require stack:
- C:\Users\me\downloads\bigcommerce\skeyndor\stencil.conf.js
- C:\Users\me\AppData\Roaming\npm\node_modules@bigcommerce\stencil-cli\lib\BuildConfigManager.js
- C:\Users\me\AppData\Roaming\npm\node_modules@bigcommerce\stencil-cli\lib\stencil-bundle.js
- C:\Users\me\AppData\Roaming\npm\node_modules@bigcommerce\stencil-cli\lib\stencil-push.utils.js
- C:\Users\me\AppData\Roaming\npm\node_modules@bigcommerce\stencil-cli\lib\stencil-push.js
- C:\Users\me\AppData\Roaming\npm\node_modules@bigcommerce\stencil-cli\bin\stencil-push.js
Steps to reproduce behavior
stencil push I have tried these rm -rf node_modules rm -f package-lock.json npm install npm install --save-dev webpack npm install --save-dev webpack-dev-server npm install --legacy-peer-deps npm install --save --legacy-peer-deps
npm ERR! An unknown git error occurred npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/bigcommerce-labs/node-sass.git npm ERR! [email protected]: Permission denied (publickey). npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists.
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/webpack npm ERR! dev webpack@"~4.27.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer webpack@"^4.37.0 || ^5.0.0" from [email protected] npm ERR! node_modules/webpack-dev-server npm ERR! dev webpack-dev-server@"*" from the root project 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.
Environment
Stencil-cli version stencil --version: 6.0.0
Node version node -v: 14.21.2
NPM version npm -v: 9.2.0
OS: Windows 11