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

Issues with latest pofile #32

Closed
jwalton opened this issue Jul 29, 2019 · 3 comments
Closed

Issues with latest pofile #32

jwalton opened this issue Jul 29, 2019 · 3 comments
Labels

Comments

@jwalton
Copy link

jwalton commented Jul 29, 2019

I just deleted my package-lock.json and reinstalled everything, so I'm pickup up the latest gettext-extractor and pofile, and I'm getting these errors in my build:

node_modules/gettext-extractor/dist/extractor.d.ts(1,25): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export.
node_modules/gettext-extractor/dist/extractor.d.ts(23,36): error TS2702: 'pofile' only refers to a type, but is being used as a namespace here.
node_modules/gettext-extractor/dist/extractor.d.ts(24,53): error TS2702: 'pofile' only refers to a type, but is being used as a namespace here.
node_modules/gettext-extractor/dist/extractor.d.ts(25,58): error TS2702: 'pofile' only refers to a type, but is being used as a namespace here.
@jwalton
Copy link
Author

jwalton commented Jul 29, 2019

Yeah, forcing pofile down to 1.0.11 via package-lock.json seems to fix this.

@lukasgeiter
Copy link
Owner

Thanks a lot for reporting this!

pofile completely rewrote the types in the latest release causing this issue. Unfortunately I was not able to make my code work with the new types (and I don't seem to be the only one) so instead I've locked the version to 1.0.x. The fix is released with version 3.5.1.

@jwalton
Copy link
Author

jwalton commented Jul 30, 2019

Thanks for the quick fix! :)

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

No branches or pull requests

2 participants