Alasql: Angular 8 + alasql

Created on 25 Sep 2019  Â·  11Comments  Â·  Source: agershun/alasql

I wanted to process an array of objects with alasql.
Steps followed:

  1. Installed alasql using sudo npm i alasql --save. Installed version - "alasql": "^0.5.1"
  2. On compiling it gives the following error.
    image
    Any solution ?
! Bug Code provided to reproduced Good first issue Help wanted

All 11 comments

Strange. What version of typescript are you using?

"typescript": "3.5.3" -

image
This cleared the error (with guidance from stackoverflow). But alasql stopped working and I changed over to SP in mysql to get the results...
Anyway, a solution to this issue may help many others and also alasql itself.

Thank you for letting me know. Hmm.

Any chance I can ask you to see if it works if you change those lines to

declare var _alasql: alaaSQLSpace.AlaSQL;
declare module 'alasql' {
    export var _alasql
}

Hi,
I am also facing the same issue. Any workaround is there to resolve this issue.

Thanks,
Naveen.

@mnjaya @gsknbabu

Any chance I can ask one of you to see if it works if you change those lines to

declare var _alasql: alaaSQLSpace.AlaSQL;
declare module 'alasql' {
    export var _alasql
}

It’s not working for me.

On Thu, 24 Oct 2019 at 4:41 PM, Mathias Rangel Wulff <
[email protected]> wrote:

@mnjaya https://github.com/mnjaya @gsknbabu
https://github.com/gsknbabu

Any chance I can ask one of you to see if it works if you change those
lines to

declare var _alasql: alaaSQLSpace.AlaSQL;
declare module 'alasql' {
export var _alasql
}

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/agershun/alasql/issues/1138?email_source=notifications&email_token=AAQ7S42JY77GPWWIAFHDZA3QQF7EVA5CNFSM4I2MXI72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECEUYQI#issuecomment-545868865,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAQ7S42ILKWRP3644YH4O5DQQF7EVANCNFSM4I2MXI7Q
.

>

Sent from Gmail Mobile

Hi,
I got the same error with the same versions. My workaround is to change these lines:

alasql.d.ts:

declare let alasql: alaSQLSpace.AlaSQL;
export default alasql;

And use it in my component:

import alasql from 'alasql';

Any update on this issue? Still seeing this error in Angular v8.* and AlaSQL v0.5.1. @JanOnGit Solution can be merged maybe? Thanks

@frostbytedata Can you please confirm if the solution from @JanOnGit is working for you?

@frostbytedata Can you please confirm if the solution from @JanOnGit is working for you?

Yes this works

Just released as part of [email protected]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cscan picture cscan  Â·  4Comments

DickSwart picture DickSwart  Â·  6Comments

mathiasrw picture mathiasrw  Â·  5Comments

daffodilistic picture daffodilistic  Â·  3Comments

carloszimm picture carloszimm  Â·  3Comments