stencil-cli icon indicating copy to clipboard operation
stencil-cli copied to clipboard

not ok -- Error: Cannot find module 'webpack'

Open cwredcross opened this issue 3 years ago • 1 comments

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,

cwredcross avatar Sep 04 '22 16:09 cwredcross

For anyone who has this issue here's what I did to fix it:

  1. npm i 1a. This will install all dependencies in your package.json
  2. 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.

sgpellsoftware avatar Mar 06 '23 20:03 sgpellsoftware