zer0bin icon indicating copy to clipboard operation
zer0bin copied to clipboard

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

Open OhaDerErste opened this issue 2 years ago • 1 comments

💡 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 avatar Dec 13 '22 19:12 OhaDerErste

Try git revert -m 1 db0d09bad790e114c4cec6bea27996e92eb452ed and then try again

ThatOneCalculator avatar Dec 14 '22 01:12 ThatOneCalculator