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.

In 0.31.1, when I wanted to export a type in a component, I had to put it in the header

See original GitHub issue

If I write this, I get an error, but if I put it in the header, it says changeLoading is undefined, and if I put changeLoading in the header, I get an error, which makes me very frustrated

export interface ModalExpose {
  changeLoading: typeof changeLoading
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
johnsoncodehkcommented, Jan 27, 2022

Same with RoleModalExpose, you can just delete ModalExpose.

0reactions
lyklcommented, Jan 27, 2022

Same with RoleModalExpose, you can just delete ModalExpose.

Thank you, I have found the cause of the error, you are right, I might not have found this problem if it was not for volar update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

You may need an additional loader to handle the result of ...
So I installed monaco-editor-webpack-plugin@6.0.0 along with monaco-editor@0.30.1 . Then you just have to add the plugin to webpack. const ...
Read more >
Importing and Exporting Components - React Docs
Make a new JS file to put the components in. Export your function component from that file (using either default or named exports)....
Read more >
Export data to a text file - Microsoft Support
This topic explains how to export text files by using the Export Wizard in Microsoft Access. What do you want to do? Understand...
Read more >
Common Errors with Exporting and Importing Translation Files
The file that you're trying to import doesn't have a valid import/export type (Source, Outdated and untranslated, or Bilingual) specified in the file...
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 >

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