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

fix: add CommonJS export to estree-walker package.json to resolve ERR… #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jrTilak
Copy link

@jrTilak jrTilak commented Nov 13, 2024

…_PACKAGE_PATH_NOT_EXPORTED error

fixes #26

The error ERR_PACKAGE_PATH_NOT_EXPORTED occurs because the estree-walker package does not have an appropriate export defined for CommonJS modules in its package.json file. By adding "require": "./src/index.js" to the exports field, you explicitly define the entry point for CommonJS modules, which resolves the issue.

".": {
      "types": "./types/index.d.ts",
      "import": "./src/index.js",
      "require": "./src/index.js" 
    }

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.

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in... error
1 participant