I am new to NextJS but have managed to make a website that works fine in all browsers except IE11. The issues in the console read....
SCRIPT1002: Syntax error
_app.js (20481,19)
Which is this _getSession line //HERE!!!
var __NEXTAUTH = {
baseUrl: (0, _parseUrl.default)(process.env.NEXTAUTH_URL || process.env.VERCEL_URL).baseUrl,
basePath: (0, _parseUrl.default)(process.env.NEXTAUTH_URL).basePath,
keepAlive: 0,
clientMaxAge: 0,
_clientLastSync: 0,
_clientSyncTimer: null,
_eventListenersAdded: false,
_clientSession: undefined,
_clientId: Math.random().toString(36).substring(2) + Date.now().toString(36),
_getSession: () => {} //HERE!!!
};
imported from import { getSession } from 'next-auth/client'
There a second error:
SCRIPT1002: Syntax error
index.js (44675,30)
Which is this line var isHTMLElement = (value) => value instanceof HTMLElement;
Any ideas how I can find the issue to these errors or has anyone come across them before? Thanks