We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My SvelteKit app works fine in dev mode.
However when i attempt to build, i get TypeError: IPinfoWrapper is not a constructor. My code looks like this:
TypeError: IPinfoWrapper is not a constructor
import IPinfoWrapper from 'node-ipinfo'; import { IPINFO_TOKEN } from "$env/static/private"; const ipinfoWrapper = new IPinfoWrapper(IPINFO_TOKEN); const IPinfos = await ipinfoWrapper.lookupIp(requestIP);
The full version in my wip is here if that helps: https://github.com/gtnbssn/lEmplacementExactDuCoeur/blob/main/src/routes/api/connect/%2Bserver.ts
I have found a very similar previous issue here: #44
It doesn't help though.
Is there a typescript setting I need to change maybe?
The text was updated successfully, but these errors were encountered:
It works if I import like this:
import { IPinfoWrapper } from 'node-ipinfo';
Sorry, something went wrong.
rm-Umar
No branches or pull requests
My SvelteKit app works fine in dev mode.
However when i attempt to build, i get
TypeError: IPinfoWrapper is not a constructor
. My code looks like this:The full version in my wip is here if that helps: https://github.com/gtnbssn/lEmplacementExactDuCoeur/blob/main/src/routes/api/connect/%2Bserver.ts
I have found a very similar previous issue here: #44
It doesn't help though.
Is there a typescript setting I need to change maybe?
The text was updated successfully, but these errors were encountered: