Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

unexpected "export" #86

Closed
amlcodes opened this issue Nov 8, 2021 · 5 comments
Closed

unexpected "export" #86

amlcodes opened this issue Nov 8, 2021 · 5 comments
Labels
❓ triage.question Question about the library

Comments

@amlcodes
Copy link

amlcodes commented Nov 8, 2021

using with nextjs typescript, when importing any hook from the library, throws error when reading "export * from './useBlockNumber'; at index.js.

Is the best way to contribute here adding a github action that publishes a package to npm on successful push or pr to main that works with the tests and this scenario?

@ShravanSunder ShravanSunder added the ❓ triage.question Question about the library label Nov 9, 2021
@ShravanSunder
Copy link
Member

ShravanSunder commented Nov 9, 2021

which version are you using? v2 or v3? I'm assuming you're working with v2. I'm not sure I understand your question, so could you expand on that? @amlcodes

FYI,

@ShravanSunder
Copy link
Member

closed because lack of info

@dellwatson
Copy link

dellwatson commented Feb 28, 2022

@ShravanSunder it is on version v2 --> "2.3.8"

It seems every new version removed the old one?
I'm on version v2 because using import { useExchangeEthPrice } from "eth-hooks/dapps/dex"; can give me error on v4.
but now it encounters this problem export things

it's hard to debug because Idk where is the old docs, and I'm not sure how to contribute this eth-hooks docs, please let me know because I have fresh knowledge about this. So I know what's good to add in the docs for new people too

@dellwatson
Copy link

seems typescript issue?
scaffold-eth/scaffold-eth#434

i also use nextjs + ts, and moving some codes from scaffold-eth with nextjs branch

@ShravanSunder
Copy link
Member

v2 is used by scaffold-eth but not scaffold-eth-typescript (which uses v4). v4 has different export locations

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
❓ triage.question Question about the library
Projects
None yet
Development

No branches or pull requests

3 participants