You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strangely enough, I get the error message with my own code and with the c&p code from your example. I'm running it in VS-Code with the Live Server extension. The data console-log fires correctly, but I get "Uncaught TypeError: row.Category is undefined" in Firefox. Any ideas what might be the cause? (Edit: In Chromium there's no error message at all and it doesn't render any contents of the G-Sheet.)
`
<script src="https://cdn.jsdelivr.net/gh/pierreavn/websheetjs/dist/websheet.min.js" type="text/javascript"></script>
<script>
websheet('stuff', {
url: 'some url',
sheet: 'Stuff',
// caching: true,
onLoaded: data => {
if (data) {
console.log('data =', data);
} else {
console.error('Error loading data from URL');
// add error handling
}
},
aliases: {
// Aliases for each category
'foo?': row => row['Category'].value === 'oof', // error message indicates this line
'bar?': row => row['Category'].value === 'rab',
'foobar?': row => row['Category'].value === 'raboof',
},
})
</script> <!-- </> Websheets -->`
The text was updated successfully, but these errors were encountered:
Yeah, I basically cloned the given example. However, in the end, switching from Firefox to Chrome solved the issue. After playing around with it, I also got it to run in FF but had to do some async voodoo 😅. Will post the solution ASAP/ as soon as I've got a minute to spare.
Strangely enough, I get the error message with my own code and with the c&p code from your example. I'm running it in VS-Code with the Live Server extension. The data console-log fires correctly, but I get "Uncaught TypeError: row.Category is undefined" in Firefox. Any ideas what might be the cause? (Edit: In Chromium there's no error message at all and it doesn't render any contents of the G-Sheet.)
`
The text was updated successfully, but these errors were encountered: