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.

[Bug] Compilation error with Angular 13

See original GitHub issue
Error: node_modules/@editorjs/editorjs/types/api/tooltip.d.ts:4:9 - error TS2614: Module '"codex-tooltip"' has no exported member 'TooltipContent'. Did you mean to use 'import TooltipContent from "codex-tooltip"' instead?

Error: node_modules/@editorjs/editorjs/types/api/tooltip.d.ts:4:25 - error TS2614: Module '"codex-tooltip"' has no exported member 'TooltipOptions'. Did you mean to use 'import TooltipOptions from "codex-tooltip"' instead?

Steps to reproduce:

  1. import EditorJS from '@editorjs/editorjs';
  2. this._editor = new EditorJS({holder:});

Editor.js version: 2.22.2

Angular version: 13.0.2

Plugins you use with their versions: none

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:10
  • Comments:14

github_iconTop GitHub Comments

BunoKertezcommented, Dec 9, 2021

same issue here Angular 12 Editor 2.22.2

editing the node module file to this fixed it for me, not ideal: node_modules@editorjs\editorjs\types\api\tooltip.d.ts

//import {TooltipContent, TooltipOptions} from 'codex-tooltip';
import TooltipOptions from "codex-tooltip"
import TooltipContent from "codex-tooltip"
Maraxcommented, Jan 6, 2022

specifying version of codex-tooltip: 1.0.2 in package.json solves the issue for me on Angular 13.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular 13 ng build library fails (ivy partial compilation mode)
This was a bug in the Angular CLI that has been fixed. In your package.json , update @angular/cli to either 12.2.16 or 13.2.1...
Read more >
Browser support - Angular
Angular is built on the latest standards of the web platform. Targeting such a wide range of browsers is challenging because they do...
Read more >
Angular 13 in Depth - Sébastien Dubois
Angular code that uses this partial format is processed during the build of the application using the same version of the Angular compiler....
Read more >
Read your production Angular Errors like a pro - Medium
We all want to build bug-free applications. We also know that it is not possible. Therefore the best we can do when we...
Read more >
What's new in Angular 13 | InfoWorld
The wrappedValue class no longer can be supported from @angular/core, which could result in compile errors or failures at runtime if libraries ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found