Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module: 'dfx-generated/CanCan' #37

Open
Federico2014 opened this issue Aug 17, 2021 · 2 comments
Open

Cannot find module: 'dfx-generated/CanCan' #37

Federico2014 opened this issue Aug 17, 2021 · 2 comments

Comments

@Federico2014
Copy link

Federico2014 commented Aug 17, 2021

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

@ashleyrudland
Copy link

Same here, any update on this?

@israel-lpz
Copy link

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants