I've encountered an issue while running my Web App with the command: node --harmony gulpfile.babel
The error message states: Uncaught TypeError: operationStore.getItems is not a function
I'm struggling to identify the root cause of this problem. Below are snippets from the gulp file and where the error occurs.
Previously, I had everything declared outside of my app.js in the index.ejs file, which worked fine. However, I needed to utilize ES6 in the server-side files, so I attempted using the -- harmony flag. Unfortunately, the error occurred when I used the harmony flag.
From what I can tell, getItems should be a function. What could be causing this issue?
Main.jsx
var Login = require('./auth/LogApp.jsx');
var operationStore = require('./stores/OperationStore.jsx');
var initial = operationStore.getItems();
Gulpfile.babel.js
... (gulpfile code snippets) ...
OperationStore.jsx
... (OperationStore code snippets) ...