Comments (14)
cross reported here: vfile/vfile#47
from unified.
vfile 4 and vfile-message 2 include typings built in.
vfile 3 and below as well as vfile-message 1 require typings to be installed from definitely typed.
either upgrade dependencies through the tree to get the versions that include typings or install @types/vfile-message
from unified.
FWIW, I use TS with Stylelint as well, and do not have have this issue.
There may be something specific to your build (webpack) or typescript configuration that is causing the conflict.
If you'd like help with that feel free to open a question at https://spectrum.chat/unified/type-definitions with more context on your build configuration.
from unified.
I have:
vfile 3.0.1, as a dep of unified.
unified 7.1.0 as a dep of remark.
remark 10.0.1 (latest is 11.0.2) as a dep of postcss-markdown # <-- this could be the issue here
postcss-markdown 0.36.0 (latest) as a dep of stylelint <- needs to upgrade remark
- has remark specified as: `"remark": "^10.0.1",`
[email protected] (latest) is my direct dependency.
I'll bring my issue to postcss-markdown
from unified.
This looks promising: https://github.com/gucong3000/postcss-markdown/issues
๐คฆโโ๏ธ
from unified.
FWIW, I use TS with Stylelint as well, and do not have have this issue.
you'd have to be using the master branch of postcss-markdown
or maybe have remark 11 installed yourself?
from unified.
No customization
stylelint
13.0.0react-scripts
(Create react app) 3.3.0typescript
3.7.5
with tsconfig
{
"compilerOptions": {
"baseUrl": "src",
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve"
},
"include": ["src"]
}
remark, unified, and vfile all are included with their standard transitive version provided by stylelint.
from unified.
Iโm seeing the same as @NullVoxPopuli. @ChristianMurphy just out of curiosity, if you delete node_modules
and package-lock.json
/yarn.lock
, and npm install
, does your build still work? Iโm wondering if in your project you are locked to an older version resolution.
from unified.
@DangoDev the package-lock.json
and node_modules
have been updated regularly, I did again today for good measure, the build still works.
I suspect it has to do with CRA setting "skipLibCheck": true
from unified.
I suspect it has to do with CRA setting
"skipLibCheck": true
Ah you may be onto something there
from unified.
For those using the new(ish) tsc --build
, skipLibCheck
isn't an option (or at the very least isn't available via --skipLibCheck
)
from unified.
@NullVoxPopuli this appears to be a tangentially related or unrelated to the original question?
To start a new discussion consider opening a thread at https://github.com/unifiedjs/unified/discussions
In addition, the TypeScript docs, make no mention of build
restricting skipLibCheck
it may be unrelated to the mode.
from unified.
๐
I just tested with the tsconfig.json flag, and it works as described by others.
(Wouldn't recommend it tho)
from unified.
@NullVoxPopuli nobody here said it was recommended. ๐คจ
It's a work around for packages which haven't updated to the latest version which includes typings.
If you disagree with CRA's choice to use the flag, that would be something to take up with CRA directly https://github.com/facebook/create-react-app/issues
from unified.
Related Issues (20)
- Update vfile to 4.2.1 HOT 1
- Logo not readable on github dark mode HOT 1
- Next major for the ecosystem HOT 46
- Dependencies need to be ESM HOT 6
- 3rd overload signature of `FrozenProcessor.run` should accept `ParseTree` instead of `CompileTree` HOT 5
- this.use() doesn't respect plugin order when combined with unified().use() HOT 6
- Support async compilers HOT 31
- Rethink how `*-stringify` should work HOT 16
- Throw on preset w/ neither `settings` nor `plugins` HOT 1
- unify AST types HOT 1
- Support `Node` typeParam in `Pluggable` and `PluggableList` HOT 9
- Notion Block AST HOT 4
- Error: No overload matches this call after library update. HOT 5
- Type errors on new major version โ 11.0.2 HOT 5
- TypeScript error when doing simple unified markdown pipeline HOT 3
- CallableInstance throws error in older ECMA 5 targets HOT 6
- remove `is-plain-obj` deps HOT 9
- Make VFileContents generic to support processors that return objects HOT 3
- VFile types do not support property result HOT 6
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 unified.