Closed Vislesha closed 7 months ago
How did you import it?
Thanks for the quick reply! I tried following ways to import alaSQL.
import * as alasql from 'alasql'
import * as alasql from 'script!alasql
import alasql from 'alasql'
No luck with any of the above!
Have you tried to require the lib?
Tried this as well with no luck!
let alasql = require('alasql');
Not sure what you mean by "require" the lib! Could you be little specific please?
Try stack overflow.
Thanks!
Hi Team:
Getting the following error while using alaSQL on a JSON object:
TypeError: (alasqlWEBPACK_IMPORTED_MODULE0namespace_cache || alasqlWEBPACK_IMPORTED_MODULE0namespace_cache) is not a function
let allYearsQry = "SELECT DISTINCT YEAR(transactionDate) FROM ? ORDER BY 1 DESC";
let allYears = alasql(allYearsQry , [transactionData]);
Using the library on: Angular: 16.2.12 alaSQL: 4.2.2
No other errors are noticed during compilation.