Closed stephanos199 closed 6 years ago
I'm using version 3.3.0-rc.3 of the editor and have codemirror version 5.34.0 as a peer dependency.
That's odd. I was using that version in our product. Which is in production actually.
You can see a working example here: https://ngx-editor.stackblitz.io/ Code for the example: https://stackblitz.com/edit/ngx-editor
Are You using ng-packagr to pack your code having this editor?
if so, try adding this to your ngPackage
configuration
Post More Information such as
If nothing helps.
@stephanos199 . Did that help?
I only had to add
{
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
"lib": {
"entryFile": "public_api.ts",
"externals": {
"codemirror": "codemirror"
}
}
}
I was missing the "externals"
declaration
So Is it working now?
Yes
Closing as PROBLEM RESOLVED
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in the thread.
To reproduce create a project, use the component and then try to compile using ng packagr