Feels like I am missing something fundamental so hoping to be pushed in the right direction.
I am looking to add prismic.io as a headless cms and was now just trying to connect according to their guide to be able to set the json that prismic gives me as a viewModel property in app.js.
import DefineMap from ‘can-define/map/’;
import route from ‘can-route’;
Getting all the correct intellisense in visual studio code but when I try to use Prismic I get
stealjs undefined is not an object evaluating st.items
Am I missing how to import and use modules in app.js? How would I go about with a start to use prismic as a headless cms (will be super helpful for localisation as well, which I am after).