A GraphQL-powered, NextJs-based, PWA storefront for Saleor. IMPORTANT: This project is [DEPRECATED] in favor of saleor/react-storefront soon to become our default demo and storefront starter pack.
Trying to run saleor-platform locally which calls out saleor-storefront. I feel I am getting close to having it all startup proper, but having issues with this repo.
storefront_1 | ready - started server on 0.0.0.0:3000, url: http://localhost:3000
storefront_1 | info - Loaded env from /app/.env
dashboard_1 | [10:58:58] Load GraphQL schemas [completed]
dashboard_1 | [10:58:58] Load GraphQL documents [started]
storefront_1 | { Error: Cannot find module '@next/bundle-analyzer'
storefront_1 | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
storefront_1 | at Function.mod._resolveFilename (/app/node_modules/next/dist/build/webpack/require-hook.js:4:1855)
storefront_1 | at Function.Module._load (internal/modules/cjs/loader.js:562:25)
storefront_1 | at Module.require (internal/modules/cjs/loader.js:692:17)
storefront_1 | at require (internal/modules/cjs/helpers.js:25:18)
storefront_1 | at Object.<anonymous> (/app/next.config.js:1:28)
storefront_1 | at Module._compile (internal/modules/cjs/loader.js:778:30)
storefront_1 | at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
storefront_1 | at Module.load (internal/modules/cjs/loader.js:653:32)
storefront_1 | at tryModuleLoad (internal/modules/cjs/loader.js:593:12) code: 'MODULE_NOT_FOUND' }
storefront_1 | npm ERR! code ELIFECYCLE
storefront_1 | npm ERR! errno 1
storefront_1 | npm ERR! react-storefront@0.1.0 start: `next start`
storefront_1 | npm ERR! Exit status 1
storefront_1 | npm ERR!
storefront_1 | npm ERR! Failed at the react-storefront@0.1.0 start script.
storefront_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
storefront_1 |
storefront_1 | npm ERR! A complete log of this run can be found in:
storefront_1 | npm ERR! /root/.npm/_logs/2022-05-02T10_58_58_702Z-debug.log
What I'm trying to achieve
Trying to run saleor-platform locally which calls out saleor-storefront. I feel I am getting close to having it all startup proper, but having issues with this repo.
Steps to reproduce the problem
docker-compose build
docker-compose up
What I expected to happen
To be able to run the project without getting this Error: Cannot find module '@next/bundle-analyzer'