You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to get this working for testing, but looks like the textstat plugin is no longer compatible with the latest textlint api?
Here's the error I'm getting when I try run one of the only public examples I could find at https://github.com/asciidwango/js-primer/blob/master/tools/textstat.js
Error: Plugin should have Processor property.
module.exports = {
Processor: class Processor{ ... }
}
at new TextlintPluginDescriptor (/Users/jrudolph/dev/tmp/js-primer/node_modules/@textlint/kernel/lib/descriptor/TextlintPluginDescriptor.js:32:19)
at /Users/jrudolph/dev/tmp/js-primer/node_modules/@textstat/kernel/lib/src/TextstatKernel.js:26:16
at Array.map (<anonymous>)
at Object.exports.createParser (/Users/jrudolph/dev/tmp/js-primer/node_modules/@textstat/kernel/lib/src/TextstatKernel.js:25:45)
at TextstatKernel.report (/Users/jrudolph/dev/tmp/js-primer/node_modules/@textstat/kernel/lib/src/TextstatKernel.js:64:34)
at /Users/jrudolph/dev/tmp/js-primer/node_modules/textstat/lib/src/textstat.js:74:41
at Array.map (<anonymous>)
at Object.<anonymous> (/Users/jrudolph/dev/tmp/js-primer/node_modules/textstat/lib/src/textstat.js:72:41)
at step (/Users/jrudolph/dev/tmp/js-primer/node_modules/textstat/lib/src/textstat.js:32:23)
at Object.next (/Users/jrudolph/dev/tmp/js-primer/node_modules/textstat/lib/src/textstat.js:13:53)
What would it take to fix those?
The text was updated successfully, but these errors were encountered:
I did a bit of digging on this. Seems it has nothing to do with the textlint's module API but something funky in the way my node wants to load the thing or how an upstream change in textlint-plugin-markdown which I've read has switched to typescript...
Anyhow, I could workaround this by fixing the plugin: require() load for textlint-markdown to unwrap the .default module wrapper.
I was trying to get this working for testing, but looks like the textstat plugin is no longer compatible with the latest textlint api?
Here's the error I'm getting when I try run one of the only public examples I could find at
https://github.com/asciidwango/js-primer/blob/master/tools/textstat.js
What would it take to fix those?
The text was updated successfully, but these errors were encountered: