@ types / html-webpack-plugin لا يدعم أنواع حزمة الويب 5 التي يتم إنشاؤها الآن بواسطة حزمة الويب نفسها.
node_modules/@types/html-webpack-plugin/index.d.ts:9:10 - error TS2305: Module '"../../webpack/types"' has no exported member 'Plugin'.
9 import { Plugin, compilation, Compiler } from 'webpack';
~~~~~~
node_modules/@types/html-webpack-plugin/index.d.ts:9:18 - error TS2724: Module '"../../webpack/types"' has no exported member 'compilation'. Did you mean 'Compilation'?
9 import { Plugin, compilation, Compiler } from 'webpack';
~~~~~~~~~~~
@types/html-webpack-plugin
وواجهت مشاكل.Definitions by:
في index.d.ts
) حتى يتمكنوا من ذلك رد.إذا لم تذكر المؤلفين ، فسيتم تجاهل المشكلة.
قم بتثبيت html-webpack-plugin@next
للتوافق مع webpack @ 5 الذي يتضمن تعريف النوع نفسه.
أحدث html-webpack-plugin
(v4.5.0) يحتوي بالفعل على تعريف نوع خاص به ، ويدعم بالفعل حزمة الويب 5. لا حاجة لتثبيت @types/html-webpack-plugin
أواجه نفس المشكلة مع webpack5 و ts ، هل قمت بحل هذه المشكلة؟
التعليق الأكثر فائدة
أحدث
html-webpack-plugin
(v4.5.0) يحتوي بالفعل على تعريف نوع خاص به ، ويدعم بالفعل حزمة الويب 5. لا حاجة لتثبيت@types/html-webpack-plugin