简体   繁体   中英

Error in angular after upgrade from angular 7 to angular 8

I upgraded angular from angular 7.3.9 to angular 8 and the ng serve command is throwing the following errors: any help would be appreciated. The errors are like so:

ERROR in./node_modules/prosemirror-commands/dist/index.mjs 362:53-65 Can't import the named export 'AllSelection' from non EcmaScript module (only default export is available)

在此处输入图像描述

The issue was being caused by "@progress/kendo-angular-editor": "^0.10.3" which was installed in my project.

The temporary solution was to remove it and reinstall, because this package was using the package prosemirror-commands which had issues, as @progress/kendo-angular-editor and it works now. Below are the steps taken:

npm uninstall @progress/kendo-angular-editor npm install @progress/kendo-angular-editor

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM