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

dfx version 0.8.0, dfx build error #66

Open
vadomlore opened this issue Aug 10, 2021 · 1 comment
Open

dfx version 0.8.0, dfx build error #66

vadomlore opened this issue Aug 10, 2021 · 1 comment

Comments

@vadomlore
Copy link

build with dfx 0.8.0
$dfx build

Hash: 5b4add425ad27977c003
Version: webpack 4.44.1
Child
Hash: 5b4add425ad27977c003
Time: 2942ms
Built at: 08/10/2021 1:10:40 AM
3 assets
Entrypoint main = index.js index.js.map
[8] (webpack)/buildin/global.js 472 bytes {0} [built]
[13] ./src/linkedup/public/index.css 573 bytes {0} [built]
[14] ./node_modules/css-loader/dist/cjs.js!./src/linkedup/public/index.css 16.2 KiB {0} [built]
[15] ./src/linkedup/public/main.js + 2 modules 10.9 KiB {0} [built]
| ./src/linkedup/public/main.js 7.44 KiB [built]
| ./src/linkedup/public/templates.js 3.11 KiB [built]
| ./src/linkedup/public/utils.js 267 bytes [built]
+ 12 hidden modules

ERROR in ./src/linkedup/public/main.js
Module not found: Error: Can't resolve 'ic:canisters/linkedup' in '/home/vadomlore/Projects/ic-project/linkedup/src/linkedup/public'
 @ ./src/linkedup/public/main.js 7:0-45 102:32-40 103:31-39 106:37-45 119:29-37 125:14-22 126:14-22 145:27-35 156:34-42 170:24-32 172:20-28 173:20-28 199:16-24 256:10-18

ERROR in ./src/linkedup/public/main.js
Module not found: Error: Can't resolve 'ic:canisters/linkedup_assets' in '/home/vadomlore/Projects/ic-project/linkedup/src/linkedup/public'
 @ ./src/linkedup/public/main.js 8:0-59 23:0-15

Stderr:
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: webpack
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/vadomlore/.npm/_logs/2021-08-10T08_10_40_087Z-debug.log

@phkla1
Copy link

phkla1 commented Sep 28, 2021

You need to stop dfx, uninstall dfx, and then install dfx version 0.6.22 (https://sdk.dfinity.org/docs/developers-guide/install-upgrade-remove.html#install-version) before you proceed. Then it will work.

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

2 participants