Skip to content

fix(exports): resolve exports for node#130

Open
gthole wants to merge 1 commit into
bifravst:sagafrom
gthole:saga
Open

fix(exports): resolve exports for node#130
gthole wants to merge 1 commit into
bifravst:sagafrom
gthole:saga

Conversation

@gthole
Copy link
Copy Markdown

@gthole gthole commented May 1, 2025

Importing in node 22 and above throws an Error [ERR_PACKAGE_PATH_NOT_EXPORTED] error.

Steps to Reproduce

  1. Confirm node v22
    $ node --version
      v22.5.1
    
  2. Install e118-iin-list:
    $ npm install e118-iin-list
    
  3. Require the package:
    $ node --eval "require('e118-iin-list')"
      node:internal/modules/cjs/loader:635
         throw e;
         ^
    
      Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined
    

Resolution

Change the exports path from import to ..

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

Successfully merging this pull request may close these issues.

1 participant