Comments (4)
FYI: I've moved the necessary @type packages to dependencies in v3.3.2
from gettext-extractor.
In the latest version I've upgraded to version 5 of the parse5 library which seems to be the cause of your issue. Are you also compiling the dist files of this package? Because that's not really necessary since it's already compiled from TypeScript to JavaScript.
In any case, a minimal working example of the problem would greatly help in figuring out what's happening.
from gettext-extractor.
hmm adding @types/[email protected]
works for me but you are right that my project should use already compiled version of your library
Also minimal example is just typescript file with:
import { GettextExtractor, JsExtractors } from 'gettext-extractor';
parsed with
tsc --module commonjs
and tsconfig.json like this:
{
"compilerOptions": {
"moduleResolution": "node",
"target": "es6",
"module":"es6",
"lib": ["es2015", "es2016", "es2017", "dom"],
"strict": true,
"sourceMap": true,
"declaration": true,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"declarationDir": "dist/types",
"outDir": "dist/lib",
"types": [
"node"
],
"typeRoots": [
"node_modules/@types"
]
},
"include": ["src"]
}
And no dependency on parse5
becouse when you add dependency "parse5": "^5.0.0"
problems doesn't appear anymore as instaling parse5
also installs typedefininitions for it
edit:
it looks that its problem with my tsconfig it was missing "skipLibCheck": true,
so sorry about that this issue probably can be closed (alternative is moving @types/parse5 to dependencies)
from gettext-extractor.
No worries 😉
I'll consider moving it to dependencies. I didn't really want to install any packages that aren't absolutely necessary but maybe it would be a good idea...
from gettext-extractor.
Related Issues (20)
- Update typescript dependency requirement HOT 2
- Can not add multiline strings with JsExtractor HOT 1
- Allow #
- Allow #| comments HOT 1
- Add message does not allow null values HOT 1
- illegal operation on a directory HOT 3
- no strings found on keybase/client project HOT 1
- Add support for empty-attribute selectors HOT 1
- String templates are not parsed HOT 2
- Cannot extract context strings from identifiers HOT 1
- how can use for extract strings not translated into XREngine repo? HOT 10
- No extraction sometimes HOT 3
- Provide content options for HTML attribute extractor HOT 7
- Variable with type and without initializer causes error HOT 1
- gettext-extractor does not support private # HOT 1
- gettext-extractor fails when glob matches a directory HOT 2
- extracting comments not working in assignment HOT 3
- HtmlExctractors returns more characters than expected HOT 2
- Add async support
- Convert to ASM?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gettext-extractor.