unjs / consola

🐨 Elegant Console Logger for Node.js and Browser
Other
6.12k stars 175 forks source link

Typescript definitions use reserved export keyword #85

Closed jjelev closed 4 years ago

jjelev commented 4 years ago
ERROR  ERROR in ./node_modules/consola/types/consola.d.ts(98,1):                                                          nuxt:typescript 11:30:28
98:1 An export assignment cannot be used in a module with other exported elements.
    96 | export default consolaGlobalInstance
    97 | 
  > 98 | export = consolaGlobalInstance
       | ^
    99 | 

ℹ Version: typescript 3.7.4                                                                                                                                nuxt:typescript 11:30:28
ℹ Time: 15081ms                                                                                                                                            nuxt:typescript 11:30:28
ℹ Waiting for file changes                                                                                                                                                 11:30:28
ℹ Memory usage: 638 MB (RSS: 1.23 GB)    
This question is available on Nuxt community (#c63)
ghost commented 4 years ago

This issue as been imported as question since it does not respect consola issue template. Only bug reports and feature requests stays open to reduce maintainers workload. If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically. Your question is available at https://cmty.app/nuxt/consola/issues/c63.

Ckeyang commented 4 years ago

I have the same problem , the error code is "An export assignment cannot be used in a module with other exported elements".
ERROR in D:/web/test-nuxt-ts/node_modules/consola/types/consola.d.ts(98,1): 98:1 An export assignment cannot be used in a module with other exported elements. 96 | export default consolaGlobalInstance 97 |

98 | export = consolaGlobalInstance | ^ 99 |