Im trying to run my shopify node app and install it on my development store/ not running localhost

machinelearner2
New Member
1 0 0

As I run shopify node serve I get this instead and it is not running on my local host:

Loaded env from /Users/georgelugo/Desktop/shopify_apps/new_app/.env

(node:68382) UnhandledPromiseRejectionWarning: Error: Cannot find module 'postcss-import'

Require stack:

- /Users/georgelugo/Desktop/postcss.config.js

- /Users/georgelugo/Desktop/shopify_apps/new_app/node_modules/next/dist/lib/find-config.js

- /Users/georgelugo/Desktop/shopify_apps/new_app/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js

- /Users/georgelugo/Desktop/shopify_apps/new_app/node_modules/next/dist/build/webpack/config/blocks/css/index.js

- /Users/georgelugo/Desktop/shopify_apps/new_app/node_modules/next/dist/build/webpack/config/index.js

- /Users/georgelugo/Desktop/shopify_apps/new_app/node_modules/next/dist/build/webpack-config.js

- /Users/georgelugo/Desktop/shopify_apps/new_app/node_modules/next/dist/server/hot-reloader.js

- /Users/georgelugo/Desktop/shopify_apps/new_app/node_modules/next/dist/server/next-dev-server.js

- /Users/georgelugo/Desktop/shopify_apps/new_app/node_modules/next/dist/server/next.js

- /Users/georgelugo/Desktop/shopify_apps/new_app/server/server.js

- /Users/georgelugo/Desktop/shopify_apps/new_app/server/index.js

    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)

    at Function.Module._load (internal/modules/cjs/loader.js:746:27)

    at Module.require (internal/modules/cjs/loader.js:974:19)

    at require (internal/modules/cjs/helpers.js:92:18)

    at Object.<anonymous> (/Users/georgelugo/Desktop/postcss.config.js:3:5)

    at Module._compile (internal/modules/cjs/loader.js:1085:14)

    at Module._compile (/Users/georgelugo/Desktop/shopify_apps/new_app/node_modules/pirates/lib/index.js:99:24)

    at Module._extensions..js (internal/modules/cjs/loader.js:1114:10)

    at Object.newLoader [as .js] (/Users/georgelugo/Desktop/shopify_apps/new_app/node_modules/pirates/lib/index.js:104:7)

    at Module.load (internal/modules/cjs/loader.js:950:32)

    at Function.Module._load (internal/modules/cjs/loader.js:790:14)

    at Module.require (internal/modules/cjs/loader.js:974:19)

    at require (internal/modules/cjs/helpers.js:92:18)

    at findConfig (/Users/georgelugo/Desktop/shopify_apps/new_app/node_modules/next/lib/find-config.ts:40:14)

    at getPostCssPlugins (/Users/georgelugo/Desktop/shopify_apps/new_app/node_modules/next/build/webpack/config/blocks/css/plugins.ts:114:7)

    at __overrideCssConfiguration (/Users/georgelugo/Desktop/shopify_apps/new_app/node_modules/next/build/webpack/config/blocks/css/overrideCssConfiguration.ts:9:26)

(Use `node --trace-warnings ...` to show where the warning was created)

(node:68382) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

(node:68382) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

0 Likes