我該如何擺脫編譯時打字錯誤? import * as Ajv from "ajv";
export class ValidateJsonService {
validateJson(json, schema) {
let ajv = new Ajv.default({ allErrors: true });
if (!ajv.validate(schema,
在準系統webpack項目中導入request時,我收到三條警告消息。 GitHub(運行npm install和npm start)提供了一個重現此錯誤的最小示例。 Critical dependency: the request of a dependency is an expression 我怎樣才能擺脫這種警告? 的更多信息: 的WebPack試圖解決靜態調用require做出最小的包。