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.

Module .../node_modules/ng2-ckeditor/lib/index.js does not export CKEditorModule

See original GitHub issue

I’m using rollup.js to build and then receiving the error Module ..../node_modules/ng2-ckeditor/lib/index.js does not export CKEditorModule (imported by /.../src/app/app.module.ts

Importing the module just like the doc provided:

import { CKEditorModule } from 'ng2-ckeditor';

@NgModule({
  // ...
  imports:      [
    CKEditorModule
  ],
  // ...
})
export class AppModule { }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
andrevcfcommented, Oct 19, 2016

I could run including ckeditor.component.ts, ckeditor.module.ts and index.ts on a folder ng2-ckeditor inside my project…

0reactions
rashmim00commented, Oct 2, 2019

I am experiencing same error with version 4. How to resolve this. my tsconfig looks good. I don’t have rollup.config.

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Docs] The `CKEditorModule` should be imported into ... - GitHub
Exporting is required for ANY module, not only for CKEditor module if you are using it in some Shared Module. So say you...
Read more >
es6 export default was not found but works from inside ...
To make CKEditor work in the <script type="module"> element, type: import {} from './ckeditor.js'. or, simply: import './ckeditor.js'.
Read more >
export - JavaScript - MDN Web Docs
The export declaration is used to export values from a JavaScript module. Exported values can then be imported into other programs with the ......
Read more >
module.exports – How to Export in Node.js and JavaScript
In this article, I will show you how to share functions and values by exporting and importing modules in Node.js.
Read more >
Modules: Packages | Node.js v19.3.0 Documentation
When used to load a JavaScript text file that is not an ECMAScript module, ... Existing packages introducing the "exports" field will prevent...
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