MauricioRobayo/nextjs-google-analytics

Hard typescript dependency?

MaffooBristol opened this issue · 4 comments

When I install and run locally, it appears to be fine. Probably because I have some typescript stuff installed globally.

However, when I try and run my (pure javascript, no TS!) app using google app engine, it explodes with a missing dependency of "tslib":

Error: Cannot find module 'tslib'

I'd prefer to not have to add any typescript peer dependencies when I'm not actually using it. Is there a way of avoiding this with this module? I believe typescript should be an optional extra not a hard requirement.

Cheers
Matt

Hello @MaffooBristol !

Not sure about tslib being a hard dependency, it is a devDependency. If you are running the JS build, it should work fine without the tslib module.

Could you share more details about the issue or how to reproduce it? Are you sure it is because of this library?

Ahhh, I believe an old version of the library used to have tslib as a dependency, could you try updating to the latest one? There have been some breaking changes so you might want to go through the Readme again, the usage has been simplified.

Is it ok to close this issue?

Feel free to open a new issue if this persists.