I am following the directions shown here to modify the date type. The original view has this code:
That syntax only works in ES6, which is not valid for customizations in the custom folder. AMD must be used. How do I rewrite that statement in AMD?
Code:
data() {
const data = super.data();
Code:
SyntaxError: 'super' keyword unexpected here (at date.js?r=1723651316:132:20)
at new Function (<anonymous>)
at Object._execute (loader.js:311:17)
at Object._handleResponseText (loader.js:964:22)
at loader.js:925:30

Comment