menu

Saleor Commerce

The world’s fastest growing open-source e-commerce platform with billions of dollars transacted. Powered by Python, GraphQL, ReactJS and PWA.

Channels
# All channels
view-forward
# General
view-forward
# Announcements
view-forward
# Design
view-forward
# Development
view-forward
# Saleor Features
view-forward
Team

enviroment api_uri not set how to do that.

May 27, 2020 at 3:09am

enviroment api_uri not set how to do that.

May 27, 2020 at 3:09am
C:\supercool\saleor-storefront\config\webpack\config.base.js:9 throw new Error("Environment variable API_URI not set"); ^
Error: Environment variable API_URI not set at Object.<anonymous> (C:\supercool\saleor-storefront\config\webpack\config.base.js:9:9) at Module._compile (internal/modules/cjs/loader.js:1133:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10) at Module.load (internal/modules/cjs/loader.js:977:32) at Function.Module._load (internal/modules/cjs/loader.js:877:14) at Module.require (internal/modules/cjs/loader.js:1019:19) at require (internal/modules/cjs/helpers.js:77:18) at Object.<anonymous> (C:\supercool\saleor-storefront\webpack.config.js:6:20) at Module._compile (internal/modules/cjs/loader.js:1133:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: cross-env NODE_ENV=develop webpack-dev-server --history-api-fallback --watch --port 3000 --mode development --hotOnly npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Manoj\AppData\Roaming\npm-cache_logs\2020-05-27T03_07_25_122Z-debug.log

May 27, 2020 at 8:58am
Hey . Are you running Saleor locally? You haven't set enviroment API_URI. You can find more information on how to do that here: https://github.com/mirumee/saleor-storefront#prerequisites
like-fill
1
  • reply
  • like