taco-paco / alpaca

Alpaca is your trusty blockchain tour guide, guiding you through Starknet network!
3 stars 1 forks source link

Failed resolutions on yarn build #2

Closed FabijanC closed 8 months ago

FabijanC commented 8 months ago

I pulled the latest commit, installed dependencies with yarn and ran yarn build. This is what I got:

yarn run v1.22.21
warning package.json: No license field
$ yarn copyAddon && yarn build:renderer && yarn build:engine && yarn build:main
warning package.json: No license field
$ ts-node package-scripts/copyAddon.ts
warning package.json: No license field
$ webpack --config webpack.config.renderer.dev.js
asset renderer.js 1.67 MiB [emitted] (name: renderer)
asset main.html 355 bytes [emitted]
runtime modules 2.18 KiB 7 modules
modules by path ./node_modules/ 1.57 MiB
  modules by path ./node_modules/style-loader/dist/runtime/*.js 5.84 KiB 6 modules
  modules by path ./node_modules/react-dom/ 1000 KiB 3 modules
  modules by path ./node_modules/react/ 85.7 KiB 2 modules
  modules by path ./node_modules/css-loader/dist/runtime/*.js 2.31 KiB 2 modules
  modules by path ./node_modules/scheduler/ 17.3 KiB 2 modules
  + 6 modules
modules by path ./app/front/ 4.93 KiB
  modules by path ./app/front/*.ts 1.88 KiB 2 modules
  modules by path ./app/front/*.css 1.74 KiB
    ./app/front/index.css 1.22 KiB [built] [code generated]
    ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./app/front/index.css 527 bytes [built] [code generated]
  ./app/front/index.tsx 1.31 KiB [built] [code generated]

ERROR in ./app/front/index.tsx 6:0-40
Module not found: Error: Can't resolve './screens/Setup' in '/home/fabijanc/shardlabs/alpaca/app/front'

ERROR in ./app/front/index.tsx 8:0-38
Module not found: Error: Can't resolve './screens/Loader' in '/home/fabijanc/shardlabs/alpaca/app/front'

ERROR in ./app/front/index.tsx 10:0-46
Module not found: Error: Can't resolve './screens/Explorer' in '/home/fabijanc/shardlabs/alpaca/app/front'

ERROR in ./app/front/rootStore.ts 2:0-47
Module not found: Error: Can't resolve './screens/Setup/store' in '/home/fabijanc/shardlabs/alpaca/app/front'
 @ ./app/front/index.tsx 3:0-49 18:28-44 18:55-64

ERROR in ./app/front/rootStore.ts 4:0-61
Module not found: Error: Can't resolve './screens/Transactions/store' in '/home/fabijanc/shardlabs/alpaca/app/front'
 @ ./app/front/index.tsx 3:0-49 18:28-44 18:55-64

ERROR in ./app/front/rootStore.ts 5:0-53
Module not found: Error: Can't resolve './screens/Accounts/store' in '/home/fabijanc/shardlabs/alpaca/app/front'
 @ ./app/front/index.tsx 3:0-49 18:28-44 18:55-64

ERROR in ./app/front/rootStore.ts 6:0-57
Module not found: Error: Can't resolve './screens/Explorer/distributor' in '/home/fabijanc/shardlabs/alpaca/app/front'
 @ ./app/front/index.tsx 3:0-49 18:28-44 18:55-64

ERROR in ./app/front/rootStore.ts 7:0-49
Module not found: Error: Can't resolve './screens/Blocks/store' in '/home/fabijanc/shardlabs/alpaca/app/front'
 @ ./app/front/index.tsx 3:0-49 18:28-44 18:55-64

8 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.90.3 compiled with 8 errors in 1295 ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
taco-paco commented 8 months ago

Thanks for reporting! Will fix shortly

taco-paco commented 8 months ago

Fixed here 097b26f329fc1c57a4e0c8da5afc53879bbf78e1

FabijanC commented 8 months ago

Ok, I am able to see the GUI, but when I click start, I get

yarn run v1.22.21
warning package.json: No license field
$ electron dist/main.js
/home/fabijanc/shardlabs/alpaca/dist
[main]:  create-engine-process
[main]:  second start
[main]:  engine-created [ null ]
cat: standard output: Bad file descriptor
[main]:  startDevnet { seed: 20, port: 5050, totalAccounts: 10 }
onEvent: error, Error: internal error in Neon module: called `Result::unwrap()` on an `Err` value: IoError(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })
    at eval (webpack://basic/./node_modules/@taco-paco/alpaca-addon-linux-x64/src/promise.js?:6:9)
    at new Promise (<anonymous>)
    at Object.createPromise (webpack://basic/./node_modules/@taco-paco/alpaca-addon-linux-x64/src/promise.js?:5:12)
    at Devnet.start (webpack://basic/./node_modules/@taco-paco/alpaca-addon-linux-x64/index.js?:20:26)
    at eval (webpack://basic/./app/engine/index.ts?:70:77)
    at step (webpack://basic/./app/engine/index.ts?:36:23)
    at Object.eval [as next] (webpack://basic/./app/engine/index.ts?:17:53)
    at eval (webpack://basic/./app/engine/index.ts?:11:71)
    at new Promise (<anonymous>)
    at __awaiter (webpack://basic/./app/engine/index.ts?:7:12)

Do you want me to post this in a new issue? Should I have devnet globally installed?

taco-paco commented 8 months ago

Better move this in another issue, or I can do it.

No need to have globally installed devnet.

one reason could be another devnet instance running occupying port 5050, but with such log it’s hard to see if it’s the case. Will add backtraces

taco-paco commented 8 months ago

Also after you click start do you get on the next page or it just crashes with the log above?

FabijanC commented 8 months ago

Better move this in another issue, or I can do it.

Feel free to migrate these lasts posts into a new issue.

Also after you click start do you get on the next page or it just crashes with the log above?

The GUI stays the same.