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

Angular 13 Editor not loading properly "ERROR TypeError: ({get default(value}) is not a constructor" primeng-editor.mjs:29 #10834

Closed
lazar0303 opened this issue Nov 11, 2021 · 8 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@lazar0303
Copy link

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports)
Please demonstrate your case at stackblitz by using the issue template below. Issues without a test case have much less possibility to be reviewd in detail and assisted.

https://stackblitz.com/github/primefaces/primeng-issue-template
Could load Angular 13, but not not PrimeNg 13 package on stackblitz.

Current behavior
bad
error

Expected behavior
good

Minimal reproduction of the problem with instructions
default implementation of editor

Please tell us about your environment:
Fedora 35, local testing

  • Angular version: 13.X

  • PrimeNG version: 13.X

  • Browser: Firefox Latest

  • Node (for AoT issues): node --version = 16.11

@magicdict
Copy link

I have the same issue.

@osintsevvladimir
Copy link

osintsevvladimir commented Nov 16, 2021

And I have :(

p-editor:
image
error:
image
error target
image

@RolfVeinoeSorensen
Copy link

I have the same issue as @osintsevvladimir

@ccit-spence
Copy link

Same issue here with Angular 13

@ccit-spence
Copy link

Further information about the error I found during debugging

core.mjs:6495 ERROR TypeError: (quill__WEBPACK_IMPORTED_MODULE_0___namespace_cache || (intermediate value)(intermediate value)) is not a constructor
    at Editor.ngAfterViewInit (primeng-editor.mjs:29)
    at callHook (core.mjs:2533)
    at callHooks (core.mjs:2502)
    at executeInitAndCheckHooks (core.mjs:2453)
    at refreshView (core.mjs:9574)
    at refreshEmbeddedViews (core.mjs:10628)
    at refreshView (core.mjs:9527)
    at detectChangesInternal (core.mjs:10856)
    at ViewRef$1.detectChanges (core.mjs:21761)
    at InputText.ngAfterViewInit (primeng-inputtext.mjs:14)

@lcnmorais
Copy link

I am with the same error.

@SergeyMell
Copy link

Same for me

@SergeyMell
Copy link

As a quick fix, you can just copy the source code of editor component (https://github.com/primefaces/primeng/blob/master/src/app/components/editor/editor.ts) into your application and it will work correctly

@yigitfindikli yigitfindikli self-assigned this Nov 22, 2021
@yigitfindikli yigitfindikli added Status: Pending Review Issue or pull request is being reviewed by Core Team and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels Nov 22, 2021
@yigitfindikli yigitfindikli added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Nov 22, 2021
@yigitfindikli yigitfindikli added this to the 13.0.0-rc.3 milestone Nov 22, 2021
@yigitfindikli yigitfindikli added the LTS-PORTABLE Issue's fix will be ported to supported LTS versions label Nov 22, 2021
@yigitfindikli yigitfindikli changed the title [BUG]: Angular 13 Editor not loading properly "ERROR TypeError: ({get default(value}) is not a constructor" primeng-editor.mjs:29 Angular 13 Editor not loading properly "ERROR TypeError: ({get default(value}) is not a constructor" primeng-editor.mjs:29 Nov 22, 2021
@yigitfindikli yigitfindikli removed the LTS-PORTABLE Issue's fix will be ported to supported LTS versions label Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

8 participants