not ok -- Error: Cannot find module 'webpack'
Expected behavior
Im atemping to bundle a theme file and upload it to bigcommerce using stencil=cli.
Actual behavior
When typing the command stencil bundle it gives me the following error not ok -- Error: Cannot find module 'webpack' Require stack:
- C:\Users\cwred\Downloads\AnniesGarden4\stencil.conf.js
- C:\Users\cwred\Roaming\nvm\node_modules@bigcommerce\stencil-cli\lib\BuildConfigManager.js
- C:\Users\cwred\Roaming\nvm\node_modules@bigcommerce\stencil-cli\lib\stencil-bundle.js
- C:\Users\cwred\Roaming\nvm\node_modules@bigcommerce\stencil-cli\bin\stencil-bundle.js
However, all of these files exist. I do not know why the system can not see them.
Steps to reproduce behavior
Environment
Im working in Windows 11 Home version 21H2 OS Build 22000.856, 64 bit,
Stencil-cli version stencil --version:
Publish stencil cli docker image (972)
Node version node -v:
14.0
NPM version npm -v:
6.14.4 (2020-03-24)
OS: OS Build 22000.856,
For anyone who has this issue here's what I did to fix it:
- npm i 1a. This will install all dependencies in your package.json
- stencil bundle
These steps assume you are using the correct versions for everything of course, and everything else set up.
If this does not help you, good luck bucko.