linkedup icon indicating copy to clipboard operation
linkedup copied to clipboard

dfx version 0.8.0, dfx build error

Open vadomlore opened this issue 3 years ago • 1 comments

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

vadomlore avatar Aug 10 '21 08:08 vadomlore

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.

phkla1 avatar Sep 28 '21 10:09 phkla1