Closed HeRoMo closed 3 years ago
https://github.com/textlint/textlint-filter-rule-allowlist/blob/f336ba1dc0e37fc8bc7f32ad2e789b95e8196c7b/package.json#L52
Probably, this error caused by textlint-filter-rule-allowlist
's dependencies.
webpack can not support module
module that is Node.js specific parts.
Probably, we need to remove rc-config-loader
from textlint-filter-rule-allowlist
's dependencies.
Or, we need to make the import statement on-demand like dynamic import.
https://github.com/textlint/editor/blob/4fa8b68b9705ea73656341b16714d4ee3e4f4c63/packages/%40textlint/script-compiler/src/compiler.ts#L113-L117
We may resolve this by adding module: false
, which I do not test yet.
probably, fixed in textlint/textlint-filter-rule-allowlist#11
My .textlintrc.yml includes textlint-filter-rule-allowlist config, as the following,
I complied my .textlintrc.yml, then errors happened, as bellow. (my home dir path replaced by
$HOME
)When I remove filters.allowlist config from .textlint.yml,
textlint-script-compiler
can compile successfully.