Giter Site home page Giter Site logo

peterpeterparker / create-ic Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 2.0 10.23 MB

A CLI for initializing projects with Juno or directing devs to the Internet Computer docs

License: MIT License

JavaScript 4.61% TypeScript 95.39%
internet-computer build-tools zero-configuration internetcomputer cli

create-ic's People

Contributors

letmejustputthishere avatar peterpeterparker avatar

Stargazers

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

Watchers

 avatar

create-ic's Issues

Error on deploying the empty project

Hello,
I'm trying to install a new project from zero using Create IC...
I cloned the Create IC project,
then I ran the commands to create the new empty project and followed all the path for creating a new backend + frontend + IC project.
Then I try to deploy the empty project using the command:
dfx deploy --no-wallet

as suggested on the terminal by the tool, but it stucks with this error:

Installing canisters...
Creating UI canister on the local network.
The UI canister on the "local" network is "be2us-64aaa-aaaaa-qaabq-cai"
Installing code for canister internet_identity, with canister ID bnz7o-iuaaa-aaaaa-qaaaa-cai
Error: Failed while trying to deploy canisters.
Caused by: Failed while trying to deploy canisters.
Failed while trying to install all canisters.
Failed to install wasm module to canister 'internet_identity'.
Failed during wasm installation call: The Replica returned an error: code 5, message: "Wasm module of canister bnz7o-iuaaa-aaaaa-qaaaa-cai is not valid: Failed to decode wasm module: unsupported canister module format"

I also tried to run dfx generate internet_identity for generating the candids, but still having the issue.

Do you know how to solve this?

It's on a MacBook pro with M1.
dfx version 0.13 before and then upgraded to 0.14... still having the issue

Thanks

Svelte framework

Hello, this is not a issue :) It just would be awesome if the there would be the option to start the project with a frontend setupped with Svelte in the frontend part selection

Windows and Linux(Debian) Support - Error trying to run npm init ic

when I try to run the " npm init ic@latest " command I get this error:
create-ic version 0.5.0
Unexpected error Error: spawn command ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn command',
path: 'command',
spawnargs: [ '-v', 'dfx' ]
error

When deploying Frontend canister is not rendering my App.tsx file

Hello,
I created a project using this template, running all the commands in the readme, it seems to work fine but my frontend application is not rendering when deploying the frontend canister neither in local or ic, even though, npm start is rendering everything ok in http://localhost:3000/. It seems to be something with the config setting the canister id.

This is my frontend canister in the ic https://3ejf7-5iaaa-aaaal-qb3pq-cai.icp0.io/

Shows this error in the inspect Console:
dex.7930dc05.js:73 Uncaught ReferenceError: process is not defined
at index.7930dc05.js:73:4407
(

Then going into the error:
canisterId = process.env.CANISTER_ID_BACKEND || "gn5qg-saaaa-aaaal-qbzia-cai" (It can't find this in the code)

I'm working in a pc windows with the wsl.

Thank you!

Invalid character(s): "-"

I'm surprised I can't use a - character in my project name:

$ npm init ic
Need to install the following packages:
  create-ic
Ok to proceed? (y) y

create-ic version 0.1.3
✔ A new version of dfx (v0.10.1) was promoted.
  Do you want to upgrade now? … no
✔ What's the name of your project?
  (a new directory will be created) … test-foo
✔ What type of canister should be use in the starter project? › Rust
error: Invalid value "test-foo" for '<PROJECT_NAME>': Invalid character(s): "-"

For more information try --help

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.