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

Failing when trying to Build and run local testnet #504

Open
defidev27 opened this issue Jan 21, 2022 · 2 comments
Open

Failing when trying to Build and run local testnet #504

defidev27 opened this issue Jan 21, 2022 · 2 comments

Comments

@defidev27
Copy link

defidev27 commented Jan 21, 2022

ENV:
node version 16.x
Windows 10 - Powershell

Command run: npm run start:testnet

Gives the following errors:

[email protected] start:testnet
node -r dotenv/config ./node_modules/.bin/react-scripts start dotenv_config_path=.env.testnet.local

D:\Temp\barnbridge-frontend-development\node_modules.bin\react-scripts:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
^^^^^^^

SyntaxError: missing ) after argument list
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47

Tried: Deleting node_modules and package-lock.json and rebuilding but gives same error.

@wfm-slava
Copy link
Contributor

wfm-slava commented Jan 26, 2022

You have to create in app folder a file with name ".env.testnet.local" and add this content inside

`
PORT = 3000

HTTPS = true

GENERATE_SOURCEMAP = false

SKIP_PREFLIGHT_CHECK = true

REACT_APP_ENV = 'development'
`

@defidev27
Copy link
Author

Hi, Thanks for that.
I've definately tried that. in fact the .env.sample file has those settings inside.

Unfortunately I'm getting the same error.

[email protected] start:testnet
node -r dotenv/config ./node_modules/.bin/react-scripts start dotenv_config_path=.env.testnet.local

F:\BarnTest\barnbridge-frontend-development\node_modules.bin\react-scripts:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
^^^^^^^

SyntaxError: missing ) after argument list
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47

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

2 participants