cancan icon indicating copy to clipboard operation
cancan copied to clipboard

Cannot find module: 'dfx-generated/CanCan'

Open Federico2014 opened this issue 4 years ago • 2 comments

I get errors when running the script: $: ./bootstrap.sh Running bootstrap script... dfx build

[email protected] deploy /Users/icp/cancan/cancan npm run start:dfx; dfx deploy

[email protected] start:dfx /Users/icp/cancan/cancan dfx start --background || exit 0

dfx is already running. Deploying all canisters. All canisters have already been created. Building canisters... Building frontend... The post-build step failed for canister 'ryjl3-tyaaa-aaaaa-aaaba-cai' with an embedded error: The command '"npm" "run" "build"' failed with exit status 'exit code: 1'. Stdout:

[email protected] build /Users/icp/cancan/cancan craco build

Creating an optimized production build... Failed to compile.

./src/utils/canister/actor.ts Cannot find module: 'dfx-generated/CanCan'. Make sure this package is installed.

You can install this package by running: npm install dfx-generated/CanCan.

when run: npm install dfx-generated/CanCan, I get the errors: $ npm install dfx-generated/CanCan npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/dfx-generated/CanCan.git npm ERR! npm ERR! ERROR: Repository not found. npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists. npm ERR! npm ERR! exited with error code: 128

Federico2014 avatar Aug 17 '21 06:08 Federico2014

Same here, any update on this?

ashleyrudland avatar Sep 16 '21 13:09 ashleyrudland

Same here

israel-lpz avatar Nov 13 '21 21:11 israel-lpz