verida-js icon indicating copy to clipboard operation
verida-js copied to clipboard

The Package does not build on Windows 10

Open kalanamt opened this issue 4 years ago • 0 comments

The package build fails when trying to build the account-web-vault

OS version :- Windows 10 Pro 64bit NodeJS :- 14.17.1

  • Error log when build using npx lerna run build
lerna ERR! yarn run build exited 2 in '@verida/account-web-vault'
lerna ERR! yarn run build stdout:
yarn run v1.22.17
$ rm -rf dist/ && tsc && mkdir -p ./dist/assets && cp -r ./src/assets/* ./dist/assets/
src/interfaces.ts(1,28): error TS2307: Cannot find module '@verida/storage-link' or its corresponding type declarations.
src/vault-account.ts(1,25): error TS2307: Cannot find module '@verida/account' or its corresponding type declarations.
src/vault-account.ts(2,28): error TS2307: Cannot find module '@verida/storage-link' or its corresponding type declarations.
src/vault-account.ts(3,25): error TS2307: Cannot find module '@verida/keyring' or its corresponding type declarations.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  • Error log when building individually ( as per the README.md)
/d/verida/verida-js/packages/account-web-vault (main)
$ yarn && yarn build && yarn link
yarn install v1.22.17
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.67s.
yarn run v1.22.17
$ rm -rf dist/ && tsc && mkdir -p ./dist/assets && cp -r ./src/assets/* ./dist/assets/
src/interfaces.ts:1:28 - error TS2307: Cannot find module '@verida/storage-link' or its corresponding type declarations.

1 import { Interfaces } from '@verida/storage-link'
                             ~~~~~~~~~~~~~~~~~~~~~~

src/vault-account.ts:1:25 - error TS2307: Cannot find module '@verida/account' or its corresponding type declarations.

1 import { Account } from '@verida/account'
                          ~~~~~~~~~~~~~~~~~

src/vault-account.ts:2:28 - error TS2307: Cannot find module '@verida/storage-link' or its corresponding type declarations.

2 import { Interfaces } from '@verida/storage-link'
                             ~~~~~~~~~~~~~~~~~~~~~~

src/vault-account.ts:3:25 - error TS2307: Cannot find module '@verida/keyring' or its corresponding type declarations.

3 import { Keyring } from '@verida/keyring'
                          ~~~~~~~~~~~~~~~~~


Found 4 errors.

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

kalanamt avatar Jan 05 '22 03:01 kalanamt