You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering the following error when trying to import the helia package in my TypeScript project:
Error: No "exports" main defined in C:\Users\saeed\type_script_projects\digital-asset-tracker\Backend\node_modules\helia\package.json
at exportsNotFound (node:internal/modules/esm/resolve:296:10)
at packageExportsResolve (node:internal/modules/esm/resolve:586:13)
at resolveExports (node:internal/modules/cjs/loader:640:36)
at Function._findPath (node:internal/modules/cjs/loader:748:31)
...
at Module.require (node:internal/modules/cjs/loader:134:12) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Steps to Reproduce
Install the helia package using npm: npm install helia
Attempt to import and use helia in my project:
import { createHelia } from 'helia';
Run the project, which leads to the above error.
The text was updated successfully, but these errors were encountered:
I am encountering the following error when trying to import the helia package in my TypeScript project:
Steps to Reproduce
npm install helia
Attempt to import and use helia in my project:
import { createHelia } from 'helia';
Run the project, which leads to the above error.
The text was updated successfully, but these errors were encountered: