Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module '"."' has no exported member 'AnyType'. #7

Closed
zacharycarter opened this issue Mar 30, 2021 · 2 comments
Closed

Module '"."' has no exported member 'AnyType'. #7

zacharycarter opened this issue Mar 30, 2021 · 2 comments

Comments

@zacharycarter
Copy link

Building with the current lts version of node produces the following errors:

zach@DESKTOP-AS7AU11 ~/d/phrase-js (master)> nvm use --lts
Now using node v14.16.0 (npm v6.14.11)
zach@DESKTOP-AS7AU11 ~/d/phrase-js (master)> npm install

> phrase-js@1.0.10 prepare /home/zach/dev/phrase-js
> npm run build


> phrase-js@1.0.10 build /home/zach/dev/phrase-js
> tsc

src/models/MemberSpaces.ts:16:5 - error TS2305: Module '"."' has no exported member 'AnyType'.

16     AnyType,
       ~~~~~~~

src/models/MemberSpaces.ts:17:5 - error TS2305: Module '"."' has no exported member 'AnyTypeFromJSON'.

17     AnyTypeFromJSON,
       ~~~~~~~~~~~~~~~

src/models/MemberSpaces.ts:18:5 - error TS2724: Module '"."' has no exported member 'AnyTypeFromJSONTyped'. Did you mean 'AccountFromJSONTyped'?

18     AnyTypeFromJSONTyped,
       ~~~~~~~~~~~~~~~~~~~~

  src/models/Account.ts:69:17
    69 export function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account {
                       ~~~~~~~~~~~~~~~~~~~~
    'AccountFromJSONTyped' is declared here.

src/models/MemberSpaces.ts:19:5 - error TS2305: Module '"."' has no exported member 'AnyTypeToJSON'.

19     AnyTypeToJSON,
       ~~~~~~~~~~~~~


Found 4 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! phrase-js@1.0.10 build: `tsc`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the phrase-js@1.0.10 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/zach/.npm/_logs/2021-03-30T15_29_08_211Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! phrase-js@1.0.10 prepare: `npm run build`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the phrase-js@1.0.10 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/zach/.npm/_logs/2021-03-30T15_29_08_418Z-debug.log

OpenAPITools/openapi-generator#6332 seems to be related.

@theSoenke
Copy link

Thanks for reporting this. I've not seen this error before but we'll try to reproduce it and get a fix out.

@aleks
Copy link
Contributor

aleks commented May 11, 2021

@zacharycarter issue is resolved by the latest phrase-js release:

Thanks a lot for reporting this! 🤘

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

No branches or pull requests

3 participants