Skip to content

Can't run a typescript project with any 5.x versions #28

@Garfonso

Description

@Garfonso

I have a typescript project, that uses adbkit. It builds fine, but it won't run at all with adbkit versions 5.0.0 and up giving the following error:

node:internal/modules/esm/resolve:313
return new ERR_PACKAGE_PATH_NOT_EXPORTED(
^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /home/achim/development/pokemonGoController/node_modules/@u4/adbkit/package.json
at exportsNotFound (node:internal/modules/esm/resolve:313:10)
at packageExportsResolve (node:internal/modules/esm/resolve:603:13)
at resolveExports (node:internal/modules/cjs/loader:646:36)
at Function._findPath (node:internal/modules/cjs/loader:713:31)
at node:internal/modules/cjs/loader:1351:27
at nextResolveSimple (/home/achim/.local/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:942)
at /home/achim/.local/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:2550
at /home/achim/.local/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:1624
at resolveTsPaths (/home/achim/.local/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:760)
at /home/achim/.local/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:1038 {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Node.js v22.18.0

I'm really lost here... searching for that error does not produce a lot of useful things, sadly... the most prominent solution is to delete node_modules and package-lock.json, which did not help. Not sure what do do and how to proceed... :-(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions