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

Vite - TypeError: fn is not a function #16813

Closed
LMS5413 opened this issue Nov 22, 2024 · 1 comment
Closed

Vite - TypeError: fn is not a function #16813

LMS5413 opened this issue Nov 22, 2024 · 1 comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted

Comments

@LMS5413
Copy link

LMS5413 commented Nov 22, 2024

Describe the bug

I have updated AngularJS to v19 and this error appears if using SSR

08:29:09 [vite] Error when evaluating SSR module /@fs/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-YLWRO5PV.js?v=8846fd1e:
|- TypeError: fn is not a function
    at eval (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22539:40)
    at Array.forEach (<anonymous>)
    at initFeatures (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22539:24)
    at Object.eval (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22430:5)
    at noSideEffects (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:12171:5)
    at Module.ɵɵdefineComponent (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22399:10)
    at Function.<static_initializer> (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-YLWRO5PV.js:1317:17)
    at eval (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-YLWRO5PV.js:1257:34)
    at async instantiateModule (file:///mnt/ntfs2/Codes/website/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52972:5)

08:29:09 [vite] Error when evaluating SSR module /@fs/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/primeng_autocomplete.js?v=8846fd1e:
|- TypeError: fn is not a function
    at eval (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22539:40)
    at Array.forEach (<anonymous>)
    at initFeatures (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22539:24)
    at Object.eval (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22430:5)
    at noSideEffects (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:12171:5)
    at Module.ɵɵdefineComponent (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22399:10)
    at Function.<static_initializer> (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-YLWRO5PV.js:1317:17)
    at eval (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-YLWRO5PV.js:1257:34)
    at async instantiateModule (file:///mnt/ntfs2/Codes/website/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52972:5)

08:29:09 [vite] Error when evaluating SSR module /chunk-WOTBJJCX.mjs:
|- TypeError: fn is not a function
    at eval (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22539:40)
    at Array.forEach (<anonymous>)
    at initFeatures (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22539:24)
    at Object.eval (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22430:5)
    at noSideEffects (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:12171:5)
    at Module.ɵɵdefineComponent (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22399:10)
    at Function.<static_initializer> (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-YLWRO5PV.js:1317:17)
    at eval (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-YLWRO5PV.js:1257:34)
    at async instantiateModule (file:///mnt/ntfs2/Codes/website/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52972:5)

08:29:09 [vite] Error when evaluating SSR module /main.server.mjs:
|- TypeError: fn is not a function
    at eval (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22539:40)
    at Array.forEach (<anonymous>)
    at initFeatures (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22539:24)
    at Object.eval (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22430:5)
    at noSideEffects (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:12171:5)
    at Module.ɵɵdefineComponent (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22399:10)
    at Function.<static_initializer> (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-YLWRO5PV.js:1317:17)
    at eval (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-YLWRO5PV.js:1257:34)
    at async instantiateModule (file:///mnt/ntfs2/Codes/website/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52972:5)

08:29:09 [vite] Internal server error: fn is not a function
      at eval (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22539:40)
      at Array.forEach (<anonymous>)
      at initFeatures (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22539:24)
      at Object.eval (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22430:5)
      at noSideEffects (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:12171:5)
      at Module.ɵɵdefineComponent (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-QNLJ3MPZ.js:22399:10)
      at Function.<static_initializer> (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-YLWRO5PV.js:1317:17)
      at eval (/mnt/ntfs2/Codes/website/.angular/cache/19.0.1/website/vite/deps_ssr/chunk-YLWRO5PV.js:1257:34)
      at async instantiateModule (file:///mnt/ntfs2/Codes/website/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52972:5)
 [vite] Error when evaluating SSR module

Environment


     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 19.0.1
Node: 20.14.0
Package Manager: bun 1.1.36
OS: linux x64

Angular: 19.0.0
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1900.1
@angular-devkit/build-angular   19.0.1
@angular-devkit/core            19.0.1
@angular-devkit/schematics      19.0.1
@angular/cli                    19.0.1
@angular/ssr                    19.0.1
@schematics/angular             19.0.1
rxjs                            7.8.1
typescript                      5.6.3
zone.js                         0.15.0

Reproducer

No response

Angular version

19.0.1

PrimeNG version

18.0.0-beta.5

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

Bun.sh 1.1.36+ededc168c

Browser(s)

Brave

Steps to reproduce the behavior

No response

Expected behavior

No response

@LMS5413 LMS5413 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 22, 2024
@LMS5413 LMS5413 changed the title Component: AutoComplete Vite - TypeError: fn is not a function Nov 22, 2024
@mertsincan mertsincan added this to the 18.0.0-rc.2 milestone Nov 22, 2024
@mertsincan mertsincan added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 22, 2024
@mertsincan mertsincan removed this from the 18.0.0-rc.2 milestone Nov 22, 2024
@mertsincan mertsincan removed this from PrimeNG Nov 22, 2024
@mertsincan mertsincan added Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted and removed Type: Bug Issue contains a bug related to a specific component. Something about the component is not working labels Nov 22, 2024
@mertsincan
Copy link
Member

Duplicate of #16827

@mertsincan mertsincan marked this as a duplicate of #16827 Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted
Projects
None yet
Development

No branches or pull requests

3 participants