Git Product home page Git Product logo

Comments (4)

jamland avatar jamland commented on June 14, 2024

hey @naamapps !
I think it is not related to Angular. it should be agnostic to the js framework.
it might be related to your js bundler, like Webpack or whatever you use. and how things are transpiled/compiled in your project.

I've created Angular codesandbox. It seems to work well. check it here:
https://codesandbox.io/s/heuristic-fermi-b1vi6?file=/src/app/app.component.ts

from sol-rayz.

marcsabate7 avatar marcsabate7 commented on June 14, 2024

Hi, im having some problems in the deployment. I just add all the files in my src folder. And show me this error. How i have to call the function useWalletNfts?? You have any code example please!!
Thanks for this!
Could not load source file "../src/index.ts" in source map of "../node_modules/@nfteyez/sol-rayz-react/dist/index.js" (think that is fixed for now)
Here i have an image where im executing the tsx code. What i have to do after this..? first time using react.
The counter is only the filename, im arriving at the console.log("here"); But at the console.log thow me error about hook.
image
image

from sol-rayz.

jamland avatar jamland commented on June 14, 2024

hey @marcsabate7
I've updated README with proper example:
https://github.com/NftEyez/sol-rayz/blob/main/packages/sol-rayz-react/README.md

1st of all these are React Hooks and can't be used with classes only with functional components. Google the difference. e.g.
https://dev.to/mehmehmehlol/class-components-vs-functional-components-in-react-4hd3

Also, here is more detailed example on how to fetch wallet NFTs with this hook:
https://github.com/thuglabs/create-dapp-solana-nextjs/blob/main/src/views/GalleryView/index.tsx

from sol-rayz.

joshuajaco avatar joshuajaco commented on June 14, 2024

I'm also running into this issue.
The error comes from typescript when setting skipLibCheck to false. The issue is that the referenced file ../types does not exist in the bundle.

image

from sol-rayz.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.