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

failed to load config from /root/zer0bin/frontend/vite.config.ts🐛 #67

Open
OhaDerErste opened this issue Dec 13, 2022 · 1 comment
Open
Labels
bug Something isn't working

Comments

@OhaDerErste
Copy link

OhaDerErste commented Dec 13, 2022

💡 Summary

yarn run build doesnt work

🥰 Expected Behavior

yarn run build should work

🤬 Actual Behavior

`root@misc:~/zer0bin/frontend# yarn run build
yarn run v1.22.19
$ vite build
failed to load config from /root/zer0bin/frontend/vite.config.ts
error during build:
/root/zer0bin/frontend/vite.config.ts:58
api_url: JSON.stringify(env.ZEROBIN_API_URL ?? env.API_URL),
^

SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.require.extensions. [as .ts] (/root/zer0bin/frontend/node_modules/vite/dist/node/chunks/dep-689425f3.js:62006:20)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at loadConfigFromBundledFile (/root/zer0bin/frontend/node_modules/vite/dist/node/chunks/dep-689425f3.js:62014:17)
at loadConfigFromFile (/root/zer0bin/frontend/node_modules/vite/dist/node/chunks/dep-689425f3.js:61933:32)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
`

📝 Steps to Reproduce

1.Follow steps in the tutorial
2.configure everything
3.run yarn
4. run yarn run build
5. Boom

📌 Environment

zer0bin version: Newest
Your OS:Ubuntu 22.04 LXC container
Your browser: Firefox 107.0.1 (shouldn't matter in that report)

@OhaDerErste OhaDerErste added the bug Something isn't working label Dec 13, 2022
@ThatOneCalculator
Copy link
Member

Try git revert -m 1 db0d09bad790e114c4cec6bea27996e92eb452ed and then try again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants