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

Unable to build- "keyword 'enum' is reserved" #682

Open
fafrd opened this issue Aug 30, 2021 · 2 comments
Open

Unable to build- "keyword 'enum' is reserved" #682

fafrd opened this issue Aug 30, 2021 · 2 comments

Comments

@fafrd
Copy link

fafrd commented Aug 30, 2021

I cloned the repo, checked out commit 4ad0998 (latest release), then ran yarn install followed by yarn build.

I got the following error:

yarn run v1.22.10
$ run-s build:*
$ yarn workspace @liquity/dev-frontend build
$ run-s build:*
$ node scripts/set-version.js
$ react-scripts build
(node:81424) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /Users/kian/Documents/eth/liquity/liquity/node_modules/postcss-safe-parser/node_modules/postcss/package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)
Creating an optimized production build...
Failed to compile.

../lib-ethers/src/ReadableEthersLiquity.ts 42:0
Module parse failed: The keyword 'enum' is reserved (42:0)
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
| const BETA = Decimal.from(2);
|
> enum BackendTroveStatus {
|   nonExistent,
|   active,

I am using node v16.7.0, yarn 1.22.10 on ARM MacOS 11.5.2.

@MaksimBorovets
Copy link

The same issue =(

@gWhy-j
Copy link

gWhy-j commented May 31, 2023

same issue :(

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

4 participants
@fafrd @gWhy-j @MaksimBorovets and others