I recently tried to incorporate some code I found at the following link:
After downloading the files view-selector2
and date-range-selector
, I saved them in my local directory.
I made a modification to the code:
var accountSummaries = require(['','/path/to/account-summaries.js']);//line no:18 in view-selector.js
The JavaScript file is now successfully loaded, however, the output does not match what was presented on the website.
This is the current output I am seeing:
Under Processing
Start Date [textbox with date]
End Date [textbox with date]
Start Date [textbox with date]
End Date [textbox with date]
I am encountering console errors like:
Uncaught TypeError: undefined is not a function (view-selector2.js:111)
I have been struggling with the require() method for the past 12 hours. Can anyone identify what the issue might be and suggest a solution?
Any resources or links that could help me resolve this would be greatly appreciated. Thank you in advance.