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

[FEATURE] - add 'main' in node/package.json #475

Open
hoangquocvietuet opened this issue Feb 17, 2025 · 0 comments
Open

[FEATURE] - add 'main' in node/package.json #475

hoangquocvietuet opened this issue Feb 17, 2025 · 0 comments
Labels
feature New feature or request

Comments

@hoangquocvietuet
Copy link
Contributor

Problem Description

Currently it doesn't have main fields in node/package.json.

So there is an error:

> [email protected] local /home/lihwy/dev/topology/starknet-agent-kit
> ts-node -r tsconfig-paths/register src/local.ts

Error: No "exports" main defined in /home/lihwy/dev/topology/starknet-agent-kit/node_modules/@ts-drp/node/package.json
    at exportsNotFound (node:internal/modules/esm/resolve:314:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:604:13)
    at resolveExports (node:internal/modules/cjs/loader:638:36)
    at Function._findPath (node:internal/modules/cjs/loader:737:31)
    at Function.<anonymous> (node:internal/modules/cjs/loader:1225:27)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue (/home/lihwy/dev/topology/starknet-agent-kit/node_modules/.pnpm/@[email protected]/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
    at Function.Module._resolveFilename (/home/lihwy/dev/topology/starknet-agent-kit/node_modules/.pnpm/[email protected]/node_modules/tsconfig-paths/src/register.ts:115:36)
    at Function._load (node:internal/modules/cjs/loader:1064:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:218:24) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
 ELIFECYCLE  Command failed with exit code 1.

Node: v20.16.0
Pnpm: v9.11.0
Project: https://github.com/hoangquocvietuet/starknet-agent-kit/tree/feat/drp

Proposed Solution

Add main in node/package.json like object/package.json

"main": "./dist/src/index.js",

Implementation PR

No response

Reference Issues

No response

Unresolved questions

No response

Additional Information

No response

@hoangquocvietuet hoangquocvietuet added the feature New feature or request label Feb 17, 2025
@d-roak d-roak added this to DRP Feb 17, 2025
@github-project-automation github-project-automation bot moved this to 🔮 Backlog in DRP Feb 17, 2025
@d-roak d-roak moved this from 🔮 Backlog to ⚙️ In Progress in DRP Feb 19, 2025
@d-roak d-roak moved this from ⚙️ In Progress to 🔮 Backlog in DRP Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant