I’m posting a thread here hoping to see some vuejs/safe-node projects pop up, which I can ste… *ahem* learn from.
Here’s my first safenetwork webwidget (aka web app) repository:
I’m posting a thread here hoping to see some vuejs/safe-node projects pop up, which I can ste… *ahem* learn from.
Here’s my first safenetwork webwidget (aka web app) repository:
Looking at the 3rd issue, the way you’re import
ing CounterModel.js
and CounterController.js
, it’s expected that those two file export a default object.
Look again at output:
WARNING Compiled with 3 warnings 06:35:49
warning in ./src/App.vue?vue&type=script&lang=js&
"export 'default' (imported as 'counter') was not found in './api/CounterModel'
warning in ./src/components/guestbook/Guestbook.vue?vue&type=script&lang=js&
"export 'default' (imported as 'counterController') was not found in '../../api/CounterController'
warning in ./src/components/guestbook/Guestbook.vue?vue&type=script&lang=js&
"export 'default' (imported as 'counterController') was not found in '../../api/CounterController'
So instead of:
module.exports = {
initiateCounter
}
Use:
export default {
initiateCounter
};