I get this error upon running newly created JHelloWorld.js:
Cannot find module 'storefront_controllers/cartridge/scripts/guard'
I created this controller under training cartridge and following controller guide .
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityI get this error upon running newly created JHelloWorld.js:
Cannot find module 'storefront_controllers/cartridge/scripts/guard'
I created this controller under training cartridge and following controller guide .
replace storefront_controllers with Training_controllers
var guard = require('Training_controllers/cartridge/scripts/guard');