ChainSafe / eth2-light-client-demo

https://lodestar-lightclient.chainsafe.io/
MIT License
5 stars 7 forks source link

Use CRA for builds #1

Closed dapplion closed 3 years ago

dapplion commented 3 years ago

Motivation

Offload setup work

Description

Use create-react-app

mpetrunic commented 3 years ago

seems like lodestar-config is missing? :O

dapplion commented 3 years ago

@mpetrunic The linter is showing these warnings, do you know who they may be fixed?

./node_modules/@chainsafe/lodestar-config/lib/chainConfig/presets/mainnet.d.ts 2:7
Module parse failed: Unexpected token (2: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
| import { IChainConfig } from "../types";
> export declare const chainConfig: IChainConfig;
| //# sourceMappingURL=mainnet.d.ts.map

./node_modules/@chainsafe/lodestar-config/lib/chainConfig/presets/minimal.d.ts 2:7
Module parse failed: Unexpected token (2: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
| import { IChainConfig } from "../types";
> export declare const chainConfig: IChainConfig;
| //# sourceMappingURL=minimal.d.ts.map
mpetrunic commented 3 years ago

@mpetrunic The linter is showing these warnings, do you know who they may be fixed?

./node_modules/@chainsafe/lodestar-config/lib/chainConfig/presets/mainnet.d.ts 2:7
Module parse failed: Unexpected token (2: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
| import { IChainConfig } from "../types";
> export declare const chainConfig: IChainConfig;
| //# sourceMappingURL=mainnet.d.ts.map

./node_modules/@chainsafe/lodestar-config/lib/chainConfig/presets/minimal.d.ts 2:7
Module parse failed: Unexpected token (2: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
| import { IChainConfig } from "../types";
> export declare const chainConfig: IChainConfig;
| //# sourceMappingURL=minimal.d.ts.map

Not sure there is unless you eject. You can supress those errors to warnings by setting env TSC_COMPILE_ON_ERROR=true 🤷🏻‍♂️