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

Throwing error when using lingui cli with nps #439

Closed
aohua opened this issue Jan 20, 2019 · 1 comment · Fixed by #441
Closed

Throwing error when using lingui cli with nps #439

aohua opened this issue Jan 20, 2019 · 1 comment · Fixed by #441

Comments

@aohua
Copy link
Contributor

aohua commented Jan 20, 2019

Describe the bug
When using nps to run the script, throwing error:
TypeError: Cannot read property 'includes' of undefined

To Reproduce
Steps to reproduce the behavior, possibly with minimal code sample, e.g:

inside package-scripts.json

i18n: {
      addLocale: 'lingui add-locale',
      extract: 'lingui extract --clean',
      compile: 'lingui compile',
 },

when running scripts with nps, throwing error:
TypeError: Cannot read property 'includes' of undefined

Expected behavior
Should be able to execute the script

Additional context
Add any other context about the problem here.

  • jsLingui version 2.7.2
  • Babel version 7.0.0-bridge.0
  • React-native 0.57.6
@tricoder42
Copy link
Contributor

Closed by #441, thank you @aohua ⚡️⚡️⚡️

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