peterpeterparker / create-ic Goto Github PK
View Code? Open in Web Editor NEWA CLI for initializing projects with Juno or directing devs to the Internet Computer docs
License: MIT License
A CLI for initializing projects with Juno or directing devs to the Internet Computer docs
License: MIT License
Would be awesome if the starter could offer to optionally add the II canister to dfx.json
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
It would be great to be able to create backend only projects.
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
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' ]
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!
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.