After upgrading primeng angular not working anymore

UI Components for Angular
Post Reply
perezjulioc
Posts: 1
Joined: 19 Mar 2021, 17:50

19 Mar 2021, 17:58

Hello, I upgraded primeng to the latest version using angular 9 and now the compilation does not work, I get
Compiling primeng/virtualscroller : es2015 as esm2015

An error occurred during the build:
TypeError: Cannot read property 'has' of undefined
at D:\nodejs\mypmcconstruction-angular-v17\node_modules\@ngtools\webpack\src\ivy\plugin.js:288:125
at Object.getSemanticDiagnosticsOfNextAffectedFile (D:\nodejs\mypmcconstruction-angular-v17\node_modules\typescript\lib\typescript.js:98611:41)
at AngularWebpackPlugin.updateAotProgram (D:\nodejs\mypmcconstruction-angular-v17\node_modules\@ngtools\webpack\src\ivy\plugin.js:288:36)
at D:\nodejs\mypmcconstruction-angular-v17\node_modules\@ngtools\webpack\src\ivy\plugin.js:156:24
at SyncHook.eval [as call] (eval at create (D:\nodejs\mypmcconstruction-angular-v17\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:19:10), <anonymous>:13:1)
at SyncHook.lazyCompileHook (D:\nodejs\mypmcconstruction-angular-v17\node_modules\webpack\node_modules\tapable\lib\Hook.js:154:20)
at Compiler.newCompilation (D:\nodejs\mypmcconstruction-angular-v17\node_modules\webpack\lib\Compiler.js:630:30)
at D:\nodejs\mypmcconstruction-angular-v17\node_modules\webpack\lib\Compiler.js:667:29
at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\nodejs\mypmcconstruction-angular-v17\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:4:1)
at AsyncSeriesHook.lazyCompileHook (D:\nodejs\mypmcconstruction-angular-v17\node_modules\webpack\node_modules\tapable\lib\Hook.js:154:20)
at Compiler.compile (D:\nodejs\mypmcconstruction-angular-v17\node_modules\webpack\lib\Compiler.js:662:28)
at D:\nodejs\mypmcconstruction-angular-v17\node_modules\webpack\lib\Compiler.js:321:11
at Compiler.readRecords (D:\nodejs\mypmcconstruction-angular-v17\node_modules\webpack\lib\Compiler.js:529:11)
at D:\nodejs\mypmcconstruction-angular-v17\node_modules\webpack\lib\Compiler.js:318:10
at eval (eval at create (D:\nodejs\mypmcconstruction-angular-v17\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:9:1)
An unhandled exception occurred: Cannot read property 'has' of undefined

I also try uninstalling primeng and installing it again and I got the same issues.


Any ideas will be really appreciated.

PhilHuhn
Posts: 177
Joined: 19 Sep 2018, 02:52
Location: Ann Arbor, Michigan USA
Contact:

19 Mar 2021, 20:55

Hey:
package.json may have the answer. PrimeNG v11 needs to use Angular v11.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests