Hi, when I try to install work with the FieldType project I get a few warnings.
warning " > @angular-redux/store@7.1.1" has unmet peer dependency “@angular/core@^5.0.0”.
warning " > @angular-redux/store@7.1.1" has unmet peer dependency “redux@^3.5.0”.
warning “litium-ui > ng2-dnd@5.0.2” has incorrect peer dependency “@angular/core@^4.0.0 || ^5.0.0”.
warning “litium-ui > ng2-dnd@5.0.2” has incorrect peer dependency “@angular/forms@^4.0.0 || ^5.0.0”.
warning “litium-ui > ng2-signalr@5.0.0” has unmet peer dependency “jquery@>= 2.0.0”.
I don’t know much about Node, but can I ignore this, since @angular/core@6.. and redux is present in the node_moduels ? Is it just that the instller dose not know this?
When I “run npm install anything” let’s say “npm install ng2-ace-editor” all goes well, and all I see are the above warnings.
Then I go to extentions.ts and the import, in this case
import { AceEditorModule } from 'ng2-ace-editor';
The IntelliSense autocompletes this for me, and the folder is present in the node node_modules, it builds fine, but in the browser I get,
dispatch.js:32 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'call' of undefined
TypeError: Cannot read property 'call' of undefined
at u (manifest.js?v=9F35B00921DB3FE4309B5102310DCE882EB7C8D9CE514E90B0D692DAD432B00D:1)
at Object.../../src/Accelerator/extensions.ts (extensions.ts:8)
This is the same for all 4 different imports that I have tested, the ones already in there like import { CalendarModule } from ‘primeng/primeng’; Works with no problem.
Do i have to take some extra steps to include new dependencies ?
ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'call' of undefined
TypeError: Cannot read property 'call' of undefined
at u (manifest.js?v=9F35B00921DB3FE4309B5102310DCE882EB7C8D9CE514E90B0D692DAD432B00D:1)
at Object.../../node_modules/ngx-moment/fesm5/ngx-moment.js (Accelerator.js:333)
at u (manifest.js?v=9F35B00921DB3FE4309B5102310DCE882EB7C8D9CE514E90B0D692DAD432B00D:1)
at Object.../../src/Accelerator/extensions.ts (extensions.ts:8)
at u (manifest.js?v=9F35B00921DB3FE4309B5102310DCE882EB7C8D9CE514E90B0D692DAD432B00D:1)
at e.invoke (animations.js:1164)
at Object.onInvoke (helpers.js:55)
at e.invoke (animations.js:1164)
at t.run (animations.js:1164)
at animations.js:1164
at I (animations.js:1164)
at animations.js:1164
at a (animations.js:1141)
at e.invoke (animations.js:1164)
at Object.onInvoke (helpers.js:55)
at e.invoke (animations.js:1164)
at t.run (animations.js:1164)
at animations.js:1164
at e.invokeTask (animations.js:1164)
at Object.onInvokeTask (helpers.js:55)
this is the only thing added to the extensions.ts on line 8
This did not work, but i’m trying different regex, did this work for you?
back to:
dispatch.js:32 ERROR Error: Uncaught (in promise): TypeError: Cannot read property ‘call’ of undefined
TypeError: Cannot read property ‘call’ of undefined
at u (manifest.js?v=9F35B00921DB3FE4309B5102310DCE882EB7C8D9CE514E90B0D692DAD432B00D:1)
at Object…/…/src/Accelerator/extensions.ts (extensions.ts:8)
at u (manifest.js?v=9F35B00921DB3FE4309B5102310DCE882EB7C8D9CE514E90B0D692DAD432B00D:1)
at e.invoke (animations.js:1164)
dispatch.js:32 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'call' of undefined
TypeError: Cannot read property 'call' of undefined
at u (manifest.js?v=9F35B00921DB3FE4309B5102310DCE882EB7C8D9CE514E90B0D692DAD432B00D:1)
at Object.../../node_modules/moment/moment.js (moment.js:4511)
at u (manifest.js?v=9F35B00921DB3FE4309B5102310DCE882EB7C8D9CE514E90B0D692DAD432B00D:1)
at Object.../../node_modules/ngx-moment/fesm5/ngx-moment.js (moment.js:4511)
at u (manifest.js?v=9F35B00921DB3FE4309B5102310DCE882EB7C8D9CE514E90B0D692DAD432B00D:1)
at Object.../../src/Accelerator/extensions.ts (extensions.ts:8)
at u (manifest.js?v=9F35B00921DB3FE4309B5102310DCE882EB7C8D9CE514E90B0D692DAD432B00D:1)
at e.invoke (animations.js:1164)
at Object.onInvoke (helpers.js:55)
at e.invoke (animations.js:1164)
at I (animations.js:1164)
at animations.js:1164
at a (animations.js:1141)
at e.invoke (animations.js:1164)
at Object.onInvoke (helpers.js:55)
at e.invoke (animations.js:1164)
at t.run (animations.js:1164)
at animations.js:1164
at e.invokeTask (animations.js:1164)
at Object.onInvokeTask (helpers.js:55)
To repleacte, just add any external lib to the extentions.ts and try to edit a block in admin that contains a filter-fields, and the error will appera in the console.
Then it should work, you should be able to add any packages that you need without the need of modifying the webpack config anymore.
In the future, the common-vendors-module.js file will be included in the litium-ui package, so you can require it from webpack like this: const commonVendorsTest = require('litium-ui/common-vendors-module.js');
I did not try to do the fix code rewrite so right now I have a gigantic test exclutions string, but am sure the fix works and my problem is “solved” so I mark it as complete. Thanks!