question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught Error: Expected 'styles' to be an array of strings.

See original GitHub issue

Hi.

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:closed
  • Created 7 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
KillerCodeMonkeycommented, Jan 3, 2017

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.module like i showed you in my previous comment

1reaction
KillerCodeMonkeycommented, Jan 2, 2017

sooo 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found