Skip to content

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

Description

@OhaDerErste

馃挕 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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions