node-yahoo-finance2 icon indicating copy to clipboard operation
node-yahoo-finance2 copied to clipboard

SvelteKit error 500

Open SergeySypalo opened this issue 1 year ago • 2 comments

Bug Report

Describe the bug

as long as I import the library using import yahooFinance from 'yahoo-finance2' and run local dev server using npm run dev I'm getting error 500, which means server error.

Minimal Reproduction

npm create svelte@latest my-app select demo app as a template, accept other defaults cd my-app npm install npm install yahoo-finance2 npm run dev -- --open

default browser should open

edit my-app/src/routes/+page.svelte add import yahooFinance from 'yahoo-finance2' to the list of imports

come back to browser to see error 500

Environment

Node version: 18.12.1 Npm version: 8.19.1 Browser verion: Chrome 108 Library version: 2.3.10

SergeySypalo avatar Dec 07 '22 18:12 SergeySypalo

I just reproduced this error in Stackblitz. See here Stackblitz example. According to the console the global variable is not accessible image.

@gadicc Do you know a quick fix for this? Otherwise i will have a look at the code and trying to figure it out.

nicogenz avatar Sep 18 '23 16:09 nicogenz

Hey, thanks! No nothing immediately comes to mind but hopefully an easy fix. I won't be able to look at this until earliest tomorrow though, probably Wednesday 😅 So wishing you good luck 🙏😁

On Mon, 18 Sept 2023, 17:13 Nico Genz, @.***> wrote:

I just reproduced this error in Stackblitz. See here Stackblitz example https://stackblitz.com/edit/sveltejs-kit-template-default-i7wpz9?file=src%2Froutes%2F%2Bpage.svelte. According to the console the global variable is not accessible [image: image] https://user-images.githubusercontent.com/34741282/268707957-df6cca9c-91eb-4193-9f63-ea0075f0e05c.png .

@gadicc https://github.com/gadicc Do you know a quick fix for this? Otherwise i will have a look at the code and trying to figure it out.

— Reply to this email directly, view it on GitHub https://github.com/gadicc/node-yahoo-finance2/issues/572#issuecomment-1723826314, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC5IGTHNILS3MJCGKFLJ7LX3BXI7ANCNFSM6AAAAAASXFKUGA . You are receiving this because you were mentioned.Message ID: @.***>

gadicc avatar Sep 18 '23 17:09 gadicc