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
Clone this repo: github.com:brandonroberts/jest-preset-angular
Checkout Angular V13 branch:
git checkout angular-v13-rc
Go to the examples/example-app-v13 directory and install dependencies
cd examples/example-app-v13
yarn
Run tests
npm run test
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
> jest-preset-angular@10.0.1 test /home/robertsbt/projects/jest-preset-angular
> jest
ngcc-jest-processor: running ngcc
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './ngcc/main-ngcc.js' is not defined by "exports" in /home/robertsbt/projects/jest-preset-angular/node_modules/@angular/compiler-cli/package.json
at throwExportsNotFound (internal/modules/esm/resolve.js:290:9)
at packageExportsResolve (internal/modules/esm/resolve.js:513:3)
at resolveExports (internal/modules/cjs/loader.js:432:36)
at Function.Module._findPath (internal/modules/cjs/loader.js:472:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:867:27)
at Function.resolve (internal/modules/cjs/helpers.js:94:19)
at Object.<anonymous> (/home/robertsbt/projects/jest-preset-angular/build/utils/ngcc-jest-processor.js:22:21)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
Please provide the environment you discovered this bug in
Ran into this issue after upgrading the NgRx repo to Angular V13 RC0 packages and trying to run tests.
Running tests with Jest fails with the jest-preset-angular package and Angular v13 RC0 due to defined exports in the package.json in the @angular/compiler-cli package.
The text was updated successfully, but these errors were encountered:
Thanks for the report @brandonroberts - I think there will be a few 3rd party libraries out that there will be affected by the changes to the packaging format in v13. It is good to get this visibility now during our RC period.
Which @angular/* package(s) are the source of the bug?
compiler-cli
Is this a regression?
Yes
Description
Filing this bug here also more for awareness of other libraries that may have this issue.
Bug is filed here also: thymikee/jest-preset-angular#1090
Steps to reproduce
examples/example-app-v13
directory and install dependenciescd examples/example-app-v13 yarn
npm run test
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in
Anything else?
Ran into this issue after upgrading the NgRx repo to Angular V13 RC0 packages and trying to run tests.
Running tests with Jest fails with the
jest-preset-angular
package and Angular v13 RC0 due to definedexports
in thepackage.json
in the@angular/compiler-cli
package.The text was updated successfully, but these errors were encountered: