gadicc / node-yahoo-finance2

Unofficial API for Yahoo Finance
https://www.npmjs.com/package/yahoo-finance2
MIT License
374 stars 62 forks source link

ERROR in ./node_modules/yahoo-finance2/dist/esm/src/lib/fetchDevel.js 6:17-62 #703

Closed chiahao-codes closed 10 months ago

chiahao-codes commented 11 months ago

Bug Report

Describe the bug

I am getting the following error when running my code:

ERROR in ./node_modules/yahoo-finance2/dist/esm/src/lib/fetchDevel.js 6:17-62 Module not found: Error: Can't resolve '../../tests/http/' in 'C:\Desktop\Ticqer\node_modules\yahoo-finance2\dist\esm\src\lib'

I checked line 6 of the fetchDevel.js inside my node_modules folder. const BASE_URL = new URL("../../tests/http/", import.meta.url); The /tests/http folder for creating a new URL does not seem to exist anywhere inside the parent folder. Has anyone encountered this? Any help would be much appreciated.

Minimal Reproduction

Environment

Browser or Node: Browser Node version (if applicable): 20.6.1 Npm version: 8.1.2 Browser verion (if applicable): Library version (e.g. 1.10.1):

Additional Context

I am using Webpack 5.88.2 as my bundler.

orelhochenboym commented 11 months ago

Maybe related to this? #645

nocodehummel commented 10 months ago

Resolved with release v2.9.0.

gadicc commented 10 months ago

:fire: :rocket: :pray: