Hi, i'm setting up lingui on my project, but i wont need i18n for all files, but i get the following errors when using extract on the project:

Individual files that import {Trans} work fine. Is there any way to just ignore files without import and keep extracting others?
Thanks.
This shouldn't been happening after latest release of CLI ([email protected]) and extract plugin ([email protected]). I'll take a look
You can also ignore individual files or patterns with srcPathIgnorePatterns option as a temporary fix (see https://lingui.gitbooks.io/js/ref/cli.html#srcpathignorepatterns-array).
Using latest release ([email protected]) and extract plugin ([email protected]).
Issue still persists.
I'm not able to reproduce this bug.
It's the very same error? Could you please paste the file which causes this error?
Any simple file can cause this, for example:
import React from 'react'
class LinguiErrorTest extends React.Component {
render() {
return <div>:(</div>
}
}
Using extract gives me:

The same error will happen on the babel plugin for some files (i'm not sure what is the trigger for the babel plugin).
Fixed in latest releases:
[email protected]
[email protected]
[email protected]
[email protected]
Working now, thanks!
Most helpful comment
Any simple file can cause this, for example:
Using extract gives me:

The same error will happen on the babel plugin for some files (i'm not sure what is the trigger for the babel plugin).