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

Error when starting #657

Open
Visivel opened this issue Nov 10, 2023 · 1 comment
Open

Error when starting #657

Visivel opened this issue Nov 10, 2023 · 1 comment

Comments

@Visivel
Copy link

Visivel commented Nov 10, 2023

Here is the full log:

F:\proxytest\proxy>npm start

> [email protected] start
> node --experimental-modules --experimental-json-modules --experimental-specifier-resolution=node --unhandled-rejections=warn --loader ts-node/esm ./src/index.ts

(node:15092) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:15092) ExperimentalWarning: The Node.js specifier resolution flag is experimental. It could change or be removed at any time.
(node:15092) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(node:15092) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
file:///F:/proxytest/proxy/src/utils/getVersion.ts:12
    return versionObject[isString ? 'version' : 'minecraftVersion'] as VersionOrProtocol<V>;
                        ^
TypeError: Cannot read properties of undefined (reading 'version')
    at getVersion (file:///F:/proxytest/proxy/src/utils/getVersion.ts:12:25)
    at file:///F:/proxytest/proxy/src/config.ts:60:37
@Visivel
Copy link
Author

Visivel commented Nov 10, 2023

Tried to update some dependencies, now its giving out another error

F:\proxytest\proxy>npm start

> [email protected] start
> node --experimental-modules --experimental-json-modules --experimental-specifier-resolution=node --unhandled-rejections=warn --loader ts-node/esm ./src/index.ts

(node:12424) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:12424) ExperimentalWarning: The Node.js specifier resolution flag is experimental. It could change or be removed at any time.
(node:12424) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(node:12424) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
TypeError: Cannot read properties of undefined (reading 'value')
    at file:///F:/proxytest/proxy/src/utils/constants.ts:26:30

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

1 participant