Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Error when having a ComponentName.ts next to ComponentName.vue #1

Closed
olemarius opened this issue Mar 27, 2021 · 1 comment
Closed
Labels

Comments

@olemarius
Copy link

 npx vue-dts-gen "src/components/**/*.vue" --outDir dist

(node:12892) UnhandledPromiseRejectionWarning: Error: Did you mean to provide the overwrite option? A source file already exists at the provided file path: C:/Users/olema/Documents/GitHub/BlocPlatform/Bloc/Frontend/Bloc.no/packages/common/src/components/Button/Button.ts
    at CompilerFactory.throwIfFileExists (C:\Users\olema\Documents\GitHub\BlocPlatform\Bloc\Frontend\Bloc.no\packages\common\node_modules\vue-dts-gen\dist\index.js:149609:13)
    at CompilerFactory.createSourceFileFromText (C:\Users\olema\Documents\GitHub\BlocPlatform\Bloc\Frontend\Bloc.no\packages\common\node_modules\vue-dts-gen\dist\index.js:149602:12)
    at CompilerFactory.createSourceFile (C:\Users\olema\Documents\GitHub\BlocPlatform\Bloc\Frontend\Bloc.no\packages\common\node_modules\vue-dts-gen\dist\index.js:149590:21)
    at Project2.createSourceFile (C:\Users\olema\Documents\GitHub\BlocPlatform\Bloc\Frontend\Bloc.no\packages\common\node_modules\vue-dts-gen\dist\index.js:150570:44)
    at C:\Users\olema\Documents\GitHub\BlocPlatform\Bloc\Frontend\Bloc.no\packages\common\node_modules\vue-dts-gen\dist\index.js:151470:34
    at async Promise.all (index 0)
    at async build (C:\Users\olema\Documents\GitHub\BlocPlatform\Bloc\Frontend\Bloc.no\packages\common\node_modules\vue-dts-gen\dist\index.js:151450:3)
    at async CAC.<anonymous> (C:\Users\olema\Documents\GitHub\BlocPlatform\Bloc\Frontend\Bloc.no\packages\common\node_modules\vue-dts-gen\dist\cli.js:13:3)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:12892) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:12892) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.     

Terminal will be reused by tasks, press any key to close it.
@egoist egoist closed this as completed in 51f45b2 Mar 27, 2021
@github-actions
Copy link

🎉 This issue has been resolved in version 0.2.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant