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

CLI throws "Error: Not found" since 0.14.0 #368

Closed
ChiefORZ opened this issue Aug 29, 2023 · 1 comment
Closed

CLI throws "Error: Not found" since 0.14.0 #368

ChiefORZ opened this issue Aug 29, 2023 · 1 comment

Comments

@ChiefORZ
Copy link

With the upgrade to version 0.14.0 of accent-cli - the accent sync command throws an error - "Not found".
image

I did not do any changes to my config:

// accent.json
{
  "files": [
    {
      "namePattern": "parentDirectory",
      "format": "simple_json",
      "source": "src/lang/*.json",
      "target": "%document_path%/synced/%slug%.json"
    }
  ]
}

Using dotenv to load the environment variables ACCENT_API_KEY, ACCENT_API_URL and ACCENT_PROJECT.

Even the cli output seems a bit wrong, because it should return english and german.

// 0.14.0
Writing files locally
   ↓ src/lang src/lang/synced/en.json
   ↓ en en/synced/en.json
 ›   Error: Not found
// 0.13.3
Writing files locally
   ↓ src/lang src/lang/synced/en.json
   ↓ src/lang src/lang/synced/de.json
@simonprev
Copy link
Member

Oh right 0.14 broke the parsing of the document name 😬 I just pushed 0.14.1, I will try it on a few projects before closing the issue!

Thanks for the quick report! 👍

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

2 participants