pulumi / tutorial-pulumi-fundamentals

Apache License 2.0
10 stars 10 forks source link

App returns error `Cannot read properties of null` on product click #10

Closed Rashair closed 1 year ago

Rashair commented 1 year ago

What happened?

When you go to http://localhost:3001/ and click on any product, the app returns an error.

image

Expected Behavior

No error, product should be displayed.

Steps to reproduce

Click on any product.

Output of pulumi about

CLI Version 3.55.0 Go Version go1.20 Go Compiler gc

Plugins NAME VERSION docker 3.6.1 nodejs unknown

Host OS Microsoft Windows 11 Education N Version 10.0.22621 Build 22621 Arch x86_64

This project is written in nodejs: executable='C:\Program Files\nodejs\node.exe' version='v14.19.1'

Current Stack: Rashair/my_first_app/dev

TYPE URN pulumi:pulumi:Stack urn:pulumi:dev::my_first_app::pulumi:pulumi:Stack::my_first_app-dev pulumi:providers:docker urn:pulumi:dev::my_first_app::pulumi:providers:docker::default_3_6_1 docker:index/remoteImage:RemoteImage urn:pulumi:dev::my_first_app::docker:index/remoteImage:RemoteImage::backendImage docker:index/remoteImage:RemoteImage urn:pulumi:dev::my_first_app::docker:index/remoteImage:RemoteImage::mongoImage docker:index/remoteImage:RemoteImage urn:pulumi:dev::my_first_app::docker:index/remoteImage:RemoteImage::frontendImage docker:index/network:Network urn:pulumi:dev::my_first_app::docker:index/network:Network::network docker:index/container:Container urn:pulumi:dev::my_first_app::docker:index/container:Container::mongoContainer docker:index/container:Container urn:pulumi:dev::my_first_app::docker:index/container:Container::frontendContainer docker:index/container:Container urn:pulumi:dev::my_first_app::docker:index/container:Container::backendContainer

Found no pending operations associated with dev

Backend Name pulumi.com URL https://app.pulumi.com/Rashair User Rashair Organizations Rashair

Pulumi locates its logs in C:\Users\przem\AppData\Local\Temp by default warning: Failed to get information about the Pulumi program's dependencies: found D:\Source\cka\pulumi\my_first_app\package-lock.json but not npm: unable to find program: npm.exe

Additional context

The setup was made by following the tutorial: https://www.pulumi.com/learn/pulumi-fundamentals/configure-and-provision/

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Rashair commented 1 year ago

Nvm, I didn't follow next step 🤦🏻