Skip to content

[Bug?] TypeError: (0 , import_core.ɵisStandalone) is not a function after upgrading to Angular 15.1 #353

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

Closed
alsami opened this issue Jan 13, 2023 · 2 comments

Comments

@alsami
Copy link

alsami commented Jan 13, 2023

I've updated to Angular 15.1 from Angular 15.0.x. Afterwards I am getting the following errors when calling render(SomeComponent).

TypeError: (0 , import_core.ɵisStandalone) is not a function

I found this solution on stackoverflow but I am already on the latest version of this library.

If you need more context about any of the tests, please lemme know. Here is my package.json, I removed the things that are not relevant.

{
  "jest": {
    "preset": "jest-preset-angular",
    "setupFilesAfterEnv": [
      "./setup-jest.ts"
    ],
    "globalSetup": "jest-preset-angular/global-setup",
    "moduleNameMapper": {
      "^@account-assistant/(.*)": "<rootDir>/src/app/$1",
      "^@environment/(.*)": "<rootDir>/src/environments/$1"
    },
    "coverageReporters": [
      "html",
      "text",
      "text-summary",
      "cobertura"
    ],
    "transformIgnorePatterns": [
      "<rootDir>/node_modules/(?!.*\\.mjs$|rxjs)"
    ]
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^15.1.0",
    "@angular/cdk": "^15.1.0",
    "@angular/common": "^15.1.0",
    "@angular/compiler": "^15.1.0",
    "@angular/core": "^15.1.0",
    "@angular/forms": "^15.1.0",
    "@angular/material": "^15.1.0",
    "@angular/platform-browser": "^15.1.0",
    "@angular/platform-browser-dynamic": "^15.1.0",
    "@angular/router": "^15.1.0",
    "@ngrx/effects": "^15.1.0",
    "@ngrx/store": "^15.1.0",
    "@ngrx/store-devtools": "^15.1.0",
    "@ngx-translate/core": "^14.0.0",
    "@ngx-translate/http-loader": "^7.0.0",
    "angular-oauth2-oidc": "^15.0.0",
    "rxjs": "~7.5.5",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^15.1.1",
    "@angular-eslint/builder": "15.1.0",
    "@angular-eslint/eslint-plugin": "15.1.0",
    "@angular-eslint/eslint-plugin-template": "15.1.0",
    "@angular-eslint/schematics": "15.1.0",
    "@angular-eslint/template-parser": "15.1.0",
    "@angular/cli": "^15.1.1",
    "@angular/compiler-cli": "^15.1.0",
    "@hirez_io/observer-spy": "^2.2.0",
    "@testing-library/angular": "^13.0.2",
    "@types/jest": "^29.2.3",
    "@types/node": "^12.20.55",
    "@typescript-eslint/eslint-plugin": "^5.43.0",
    "@typescript-eslint/parser": "^5.43.0",
    "cypress": "^12.2.0",
    "@cypress/schematic": "^2.4.0",
    "eslint": "^8.28.0",
    "eslint-plugin-ngrx": "^2.1.4",
    "jest": "^28.0.0",
    "jest-preset-angular": "^12.2.3",
    "typescript": "~4.8.4"
  }
}
@TrustNoOneElse
Copy link
Contributor

TrustNoOneElse commented Jan 13, 2023

Hey, this is a duplicated issue of #350

@alsami
Copy link
Author

alsami commented Jan 13, 2023

Hey, this is a duplicated issue of #350

Thanks, missed that! Closing this since it is a duplicate.

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

No branches or pull requests

2 participants