← All tasks
javascriptkulshekhar/ts-jest #2623Not a task: already works

Package subpath './presets' is not defined by "exports"

envgap__kulshekhar__ts-jest-2623

01 / FAILURE SIGNATURE

As reported upstream

After upgrading from version 26 to 27, an error occurs 「Package subpath './presets' is not defined by "exports"」
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
6eeca1404eb7c33d38f1b40a35ba7bc3fd87bb50
Manifest
package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

kulshekhar/ts-jest #2623 · read the original issue
## 🐛 Bug Report



After upgrading from version 26 to 27, an error occurs 「Package subpath './presets' is not defined by "exports"」



![image](https://user-images.githubusercontent.com/2276086/119615468-02d3a880-be32-11eb-86d6-ae8f1cc58a35.png)



## Expected behavior



I assume it is a typo?



```

"exports": {

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

    "./dist/*": "./dist/*.js",

    "./jest-preset": "./jest-preset.js",

    "./preset": "./presets/index.js", <- presets mapped as preset

    "./utils": "./utils/index.js",

    "./package.json": "./package.json"

  },

```



I checked version 26, and seems the exports part is new in 27, can u fix it?
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]