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

Build fails #27

Open
okwme opened this issue Jan 2, 2020 · 0 comments
Open

Build fails #27

okwme opened this issue Jan 2, 2020 · 0 comments

Comments

@okwme
Copy link

okwme commented Jan 2, 2020

> yarn build   
yarn run v1.16.0
$ rimraf lib
$ webpack
Error parsing bundle asset "/home/billyrennekamp/GitHub.com/okwme/talkshop/node_modules/@lunie/cosmos-keys/lib/cosmos-keys.js": no such file

No bundles were parsed. Analyzer will show only original module sizes from stats file.

Webpack Bundle Analyzer saved report to /home/billyrennekamp/GitHub.com/okwme/talkshop/node_modules/@lunie/cosmos-keys/bundle_analyzer/bundle_sizes.html
Hash: 9ff046ef7a3d30eefde6
Version: webpack 4.41.3
Time: 84ms
Built at: 2020-01-02 23:12:12
 2 assets
Entrypoint main = cosmos-keys.js cosmos-keys.js.map
[0] ./src/types.ts 304 bytes {0} [built] [failed] [1 error]
[1] ./src/cosmos-keys.ts 429 bytes {0} [built] [failed] [1 error]
[2] ./src/cosmos-keystore.ts 442 bytes {0} [built] [failed] [1 error]
[3] multi ./src/index.ts 28 bytes {0} [built]
[4] ./src/index.ts 88 bytes {0} [built]

WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/

ERROR in ./src/cosmos-keys.ts 11:18
Module parse failed: Unexpected token (11:18)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| 
| /* tslint:disable-next-line:strict-type-predicates */
> const windowObject: Window | null = typeof window === 'undefined' ? null : window
| 
| // returns a byte buffer of the size specified
 @ ./src/index.ts 2:0-29 2:0-29
 @ multi ./src/index.ts

ERROR in ./src/cosmos-keystore.ts 19:39
Module parse failed: Unexpected token (19:39)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| 
| // loads and decrypts a wallet from localstorage
> export function getStoredWallet(address: string, password: string): Wallet {
|   const storedWallet = loadFromStorage(address)
|   if (!storedWallet) {
 @ ./src/index.ts 3:0-33 3:0-33
 @ multi ./src/index.ts

ERROR in ./src/types.ts 1:7
Module parse failed: Unexpected token (1:7)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> export interface KeyPair {
|   privateKey: Buffer
|   publicKey: Buffer
 @ ./src/index.ts 1:0-23 1:0-23
 @ multi ./src/index.ts
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
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

1 participant