Uncaught Error: Expected 'styles' to be an array of strings.
See original GitHub issueHi.
I’ve just downloaded your component and im trying to make it work. I’ve added the component to my appModule as explained in the ReadMe file.
i get this error when trying to transpile my code:
angular 2/angular-seed/angular-webpack/node_modules/ng2-quill-editor/quillEditor.component.ts:81:57
Property 'assign' does not exist on type 'ObjectConstructor'.
i also get a bunch of errors, like this one:
Uncaught Error: Expected 'styles' to be an array of strings.
at assertArrayOfStrings (eval at (http://localhost:8081/vendor.js:95:2)
Most of the errors occur in the vendor.ts file.
I had to set the "noImplicitAny": false to false to avoid a whole bunch of other errors regarding implicitly type any.
Is there any fix to these errors? Am i missing something?
I’m running with typescript version 2.0.10 - angular version ~2.2.0
Kind regards Chris
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Angular 7 "expected 'styles' to be an array of strings"
I found that using raw-loader version 2.0.0 was causing this error even though my styleUrls were correct syntax. Downgrading to raw-loader ...
Read more >"Expected 'styles' to be an array of strings." when a stylesheet ...
This is a bug, but a hard one to fix... it happens because we need to identify which files are loaded in one...
Read more >Javascript – Angular 7 “expected 'styles' to be an array of strings”
Instead, I am receiving this error. compiler.js:7992 Uncaught Error: Expected 'styles' to be an array of strings. at assertArrayOfStrings (compiler.js:7992)
Read more >Expected 'styles' to be an array of strings-angular.js
Coding example for the question Angular 6 Uncaught Error: Expected 'styles' to be an array of strings-angular.js.
Read more >angular/angular-cli - Gitter
No bundle time errors but when loading I get assertions.js:19 Uncaught Error: Expected 'styles' to be an array of strings. The styles parameter...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

It is an complete project, but only to combine a demo-page with the module. you can use this as external module --> in src-folder is the whole project. But there are two modules --> app and quill.
App uses quill to present a demo, how to use it 😃.
this AppModule is my demo page. https://killercodemonkey.github.io/ngx-quill/
So, you need to import QuillModule from
ngx-quill/src/quill/quill.modulelike i showed you in my previous commentsooo i have updated cli to latest beta and increased + fixed rxjs and @angular versions -.-. This incompatiblility suuuuuuucks *narf
I renamed the repo to ngx-quill, because of the new versioning of angular >=2. See the 0.1.0 release