Skip to content
New issue

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

Used this in angular it seems this error #943

Closed
Rubanrubi opened this issue May 4, 2023 · 19 comments
Closed

Used this in angular it seems this error #943

Rubanrubi opened this issue May 4, 2023 · 19 comments

Comments

@Rubanrubi
Copy link

Screenshot from 2023-05-04 17-31-36

@Rubanrubi
Copy link
Author

how to fix it? kindly help me

@Rubanrubi Rubanrubi changed the title Uses thi in angular it seems this error Used this in angular it seems this error May 4, 2023
@ryanio
Copy link
Collaborator

ryanio commented May 24, 2023

we are working on a v6 branch that will have much fewer dependencies and should fix this issue

@JoshuaSchmidt-OpenSea
Copy link
Contributor

v6.0.2 has been released. There may be some changes needed to incorporate the breaking changes. But I believe the reduction in dependencies will eliminate this issue.

@Rubanrubi
Copy link
Author

yes @JoshuaSchmidt-OpenSea @ryanio the above screenshot error fixed now after updating to v6.0.2 but now i got this issue

image

@Rubanrubi
Copy link
Author

Rubanrubi commented Jun 7, 2023

while compiling in angular project i got the above errors how to resolve it @ryanio

@ryanio
Copy link
Collaborator

ryanio commented Jun 7, 2023

What version of node are you on? Try minimum Node v16

@Rubanrubi
Copy link
Author

image
@ryanio

@Rubanrubi
Copy link
Author

kindly help me out from this issue @ryanio

@ryanio
Copy link
Collaborator

ryanio commented Jun 7, 2023

Please try with Node v16, to make it easier to change node versions try using nvm https://github.com/nvm-sh/nvm#installing-and-updating

@Rubanrubi
Copy link
Author

Sorry, I tried that too @ryanio

Steps i followed

nvm use 16
rm -rf node_modules/
rm -rf package-lock.json
npm cache clean --force
npm i
same issue coming @ryanio

image

@ryanio
Copy link
Collaborator

ryanio commented Jun 7, 2023

What if you use the browserified lib/bundle.js?

I'm not too familiar with the angular pipeline, you might need to use webpack or some tool in your build process.

@Rubanrubi
Copy link
Author

Internal Process

  1. Angular CLI runs Webpack to build and bundle all JavaScript and CSS code.

  2. In turn Webpack calls the TypeScript loaders which fetches all .ts file in the Angular project and then transpiles them to JavaScript i.e to a .js file, which browsers can understand.

@ryanio
Copy link
Collaborator

ryanio commented Jun 7, 2023

can you try Option B in this answer? https://stackoverflow.com/a/71808381

@Rubanrubi
Copy link
Author

yes tried but i can't same issue persist

@ryanio
Copy link
Collaborator

ryanio commented Jun 7, 2023

I have opened a PR removing isomorphic-unfetch and instead using ethers' util fetchJson. i hope this helps solve your issue.

PR: #1029

@ryanio
Copy link
Collaborator

ryanio commented Jun 7, 2023

@Rubanrubi we have published v6.0.3 on npm with the fix, give us a try and let us know if it helped fixed your issue!

@ryanio
Copy link
Collaborator

ryanio commented Jun 9, 2023

closing since the dependency you were having trouble with is no longer included.

if you are still having issues please open a new issue with details.

i would also recommend doing rm -rf node_modules and a fresh npm install

@ryanio ryanio closed this as completed Jun 9, 2023
@Rubanrubi
Copy link
Author

@ryanio Thank you so much for your support its working cool ethers v5 and opensea sdk v6.0.3 :)

@Rubanrubi
Copy link
Author

I'll be waiting for multi chain support @ryanio Hope it will be launch soon...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants