vectoris
15 Mar 2019, 9:44 AM
Hello!
I tried to get started with the getting_started.md document from the github repository to integrate ext-angular within angular-cli. But unfortunately it didn't work.
First problem was, that the import in app.module.ts
import { ExtAngularModernModule } from './ext-angular-modern/ext-angular-modern.module'
is not possible because the folder doesn' exist and no @sencha/ext-angular-modern module was present. I changed that to
import { ExtAngularModule } from '@sencha/ext-angular' in hope that this is the right one.
After that i got that build error:
Data path "" should NOT have additional properties(es5BrowserSupport).
Updating @angular-builders/custom-webpack and "@angular-builders/dev-server" to the latest version fixed that.
Now the build is successfull and a "dist" folder is created with ext-files in it, but the app doesnt work because the ext.js files are not hosted within the Angular dev server. Http-Error 404
https://user-images.githubusercontent.com/8465587/54411731-5eea0080-46f0-11e9-896b-af2545bcdf1f.png (https://user-images.githubusercontent.com/8465587/54411731-5eea0080-46f0-11e9-896b-af2545bcdf1f.png)
I tried a few things but nothing worked....
Can you please try it yourself an update the readme and/or can you please help me?
THX in advance!
I tried to get started with the getting_started.md document from the github repository to integrate ext-angular within angular-cli. But unfortunately it didn't work.
First problem was, that the import in app.module.ts
import { ExtAngularModernModule } from './ext-angular-modern/ext-angular-modern.module'
is not possible because the folder doesn' exist and no @sencha/ext-angular-modern module was present. I changed that to
import { ExtAngularModule } from '@sencha/ext-angular' in hope that this is the right one.
After that i got that build error:
Data path "" should NOT have additional properties(es5BrowserSupport).
Updating @angular-builders/custom-webpack and "@angular-builders/dev-server" to the latest version fixed that.
Now the build is successfull and a "dist" folder is created with ext-files in it, but the app doesnt work because the ext.js files are not hosted within the Angular dev server. Http-Error 404
https://user-images.githubusercontent.com/8465587/54411731-5eea0080-46f0-11e9-896b-af2545bcdf1f.png (https://user-images.githubusercontent.com/8465587/54411731-5eea0080-46f0-11e9-896b-af2545bcdf1f.png)
I tried a few things but nothing worked....
Can you please try it yourself an update the readme and/or can you please help me?
THX in advance!