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.

Upgrading to Orval 6.5 breaks generation

See original GitHub issue

What are the steps to reproduce this issue?

  1. Install Orval 6.4 and generate
  2. Upgrade to 6.5

What happens?

The generation breaks

What were you expecting to happen?

The generation works as before - e.g. no breaking change from 6.4 to 6.5

Any logs, error output, etc?

🍻 Start orval v6.5.1 - A swagger client generator for typescript
 > request.ts:1:40: error: [plugin: replace-import-meta] ENOENT: no such file or directory, open 'C:\mypath\typesaxios.ts'
    1 │ import Axios, {AxiosRequestConfig} from 'axios';
      ╵                                         ~~~~~~~
   ../../node_modules/orval/dist/chunk-RFHR4BKT.js:4:5855: note: This error came from the "onLoad" callback registered here
    4 │ ...},{name:"replace-import-meta",setup(i){i.onLoad({filter:/\.[jt]s$/},async c=>{let p=awa...
      ╵                                             ~~~~~~
    at setup (C:\mypath\node_modules\orval\dist\chunk-RFHR4BKT.js:4:5856)
    at handlePlugins (C:\mypath\node_modules\orval\node_modules\esbuild\lib\main.js:756:23)
    at Object.buildOrServe (C:\mypath\node_modules\orval\node_modules\esbuild\lib\main.js:1044:7)
    at C:\mypath\node_modules\orval\node_modules\esbuild\lib\main.js:1895:17
    at new Promise (<anonymous>)
    at Object.build (C:\mypath\node_modules\orval\node_modules\esbuild\lib\main.js:1894:14)
    at build (C:\mypath\node_modules\orval\node_modules\esbuild\lib\main.js:1749:51)
    at Qi (C:\mypath\node_modules\orval\dist\chunk-RFHR4BKT.js:4:4794)
    at ut (C:\mypath\node_modules\orval\dist\chunk-RFHR4BKT.js:4:4497)

vs.

🍻 Start orval v6.4.3 - A swagger client generator for typescript
Your mutator cannot be loaded so default setup has been applied => C:/mypath/request.ts
🎉 browser - Your OpenAPI spec has been converted into ready to use orval!

Any other comments?

What versions are you using?

Operating System: Windows 10 Package Version: 6.5.1

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
anymaniaxcommented, Feb 9, 2022

fixed will be in the next version

2reactions
anymaniaxcommented, Feb 16, 2022

fixed with 6.6.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

orval@6.3.0 - list of HIGH security vulnerabilities (CVEs) · Issue ...
I've run a security vulnerability scan against orval@6.3.0 (using Black Duck software) and it ... Upgrade from 6.5.3 to 6.6.0 breaks generation #320....
Read more >
Untitled
Gs 11 step 10 to gs 12, Bentley turbo r turbo upgrade, Emma jones final, ... Okp serang polisi di medan, Bob beauprez,...
Read more >
KDJ - River Thames Conditions - Environment Agency - GOV.UK
The broken arm restaurant paris, Cr250r, Nativity play children. ... Thiruvila song, Young generation magazine, Windows 8 support timeline! Weilings!
Read more >
Improving Fan System Performance - A Sourcebook for Industry
Upgrading to a new motor can reduce operating costs, because of improved motor efficiency, while offering slightly improved fan performance. EPAct-.
Read more >
Trademark Fine Art 'Orval 2' Canvas Art by Vintage Apple ...
Product Type · Gallery-Wrapped Canvas Art ; Country of Origin - Textiles. USA ; Brand. Trademark Fine Art ; Size. 12 x 24...
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