Giter Club home page Giter Club logo

nextjs-ic-starter's People

Contributors

kinwo avatar mcgrealife avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nextjs-ic-starter's Issues

Issues in adding tailwindcss

Do you have any example with tailwindcss integrated in this ? Somehow, it is not picking tailwindcss classes ?

ERR_CONNECTION_REFUSED locally

trying to run this locally and getting a net::ERR_CONNECTION_REFUSED

I can see that NEXT_PUBLIC_IC_HOST=http://localhost:8000 is already set

I suspect this is something like a CORS issue, but a confirmation and resolution would be great

Screenshot 2023-09-13 at 8 23 47 PM

Query for SSR

From this note ```One thing to note is we use Next.js static code export here for hosting in Internet Computer so we can't use any features of Next.js that require server-side NodeJS. Potentially, there might be ways to use Internet Computer canister as a backend while deploying Next.js dapp to a hosting like Vercel that supports NodeJS servers in the future. Further research is needed on that aspect. However, if you do want to run everything decentralized on blockchain including the frontend, you would want to deploy the exported static code to Internet Computer as well.````

means that we are unable to use getServerSideProps and unable to use API/ route for serverside APIs. If yes, is there any alternative way to call API routes while hosting from frontend canister? Thanks!

Runtime Error during fetching

Unhandled Runtime Error
TypeError: Failed to fetch

Source
ui/components/GreetingSection.js (21:21) @ async sayGreeting

19 |
20 | const helloActor = makeHelloActor()

21 | const greeting = await helloActor.greet(name)
| ^
22 |
23 | setLoading("")
24 | setGreetingMessage(greeting)

How to add now canister to backend

Hi,

I am a green hand in ICP. I want to add a new motoko canister to backend. I meet an error : "Must specify a host to connect to"
image
For test, I add a Hello2.mo like this
image
put it into the dfx.json
image
then, I run "deploy hello2", it succeeds, and I copy interface declarations from .dfx/local/canisters/hello2 to /ui/declarations/hello2
image
next, I create a new actor in actor-locator.js, like this
image
finally, I use it in ui/components/GreetingSection.js like this
image
I run dfx deploy and meet the error above.
What should I do to add a new backend? What steps did I miss? Need your help. Thanks

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.