bigcommerce / stencil-cli

BigCommerce Stencil emulator for local theme development
https://developer.bigcommerce.com/stencil-docs
BSD 4-Clause "Original" or "Old" License
101 stars 141 forks source link

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

Open cwredcross opened 2 years ago

cwredcross commented 2 years ago

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:

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,

sgpellsoftware commented 1 year ago

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.