Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js Next.js:error-./node_modules/etag/index.js:22:0未找到模块:Can';t解决';财政司司长';无效的 export类SpringApiError扩展了ApiError{ 只读时间戳:字符串; 只读路径:字符串; 构造函数(dto:ServerErrorDto){ super(dto.status,dto.message); this.timestamp=dto.timestamp; this.name=dto.error; this.path=dto.path; } toString(){ 返回` ${this.stack}|${this.name}|${this.message} ` } } 接口服务器错误到{ 时间戳?:字符串, 状态:编号, 错误:字符串 消息:string 路径?:字符串 }_Node.js_Typescript_Webpack_Next.js_Fs - Fatal编程技术网

Node.js Next.js:error-./node_modules/etag/index.js:22:0未找到模块:Can';t解决';财政司司长';无效的 export类SpringApiError扩展了ApiError{ 只读时间戳:字符串; 只读路径:字符串; 构造函数(dto:ServerErrorDto){ super(dto.status,dto.message); this.timestamp=dto.timestamp; this.name=dto.error; this.path=dto.path; } toString(){ 返回` ${this.stack}|${this.name}|${this.message} ` } } 接口服务器错误到{ 时间戳?:字符串, 状态:编号, 错误:字符串 消息:string 路径?:字符串 }

Node.js Next.js:error-./node_modules/etag/index.js:22:0未找到模块:Can';t解决';财政司司长';无效的 export类SpringApiError扩展了ApiError{ 只读时间戳:字符串; 只读路径:字符串; 构造函数(dto:ServerErrorDto){ super(dto.status,dto.message); this.timestamp=dto.timestamp; this.name=dto.error; this.path=dto.path; } toString(){ 返回` ${this.stack}|${this.name}|${this.message} ` } } 接口服务器错误到{ 时间戳?:字符串, 状态:编号, 错误:字符串 消息:string 路径?:字符串 },node.js,typescript,webpack,next.js,fs,Node.js,Typescript,Webpack,Next.js,Fs,出于某种原因,仅仅扩展apirerror就可以从etag模块中得到该错误。 知道为什么吗? 这正常吗 我只是想找个教训也许。。。我非常乐意扩展Error。apirerror来自哪里?这不是JS标准的内置错误类型。@juliomalves它来自下一个。js@Ghislain尝试运行:npm run build,然后通过错误消息读取并搜索。另外,在我的例子中,我的代码编辑器的autocomplete导入了错误的函数。这导致了这种行为。我删除了那个错误的导入,nextjs工作正常。APIRROR来自哪

出于某种原因,仅仅扩展
apirerror
就可以从
etag
模块中得到该错误。 知道为什么吗? 这正常吗


我只是想找个教训也许。。。我非常乐意扩展
Error

apirerror来自哪里?这不是JS标准的内置错误类型。@juliomalves它来自下一个。js@Ghislain尝试运行:
npm run build
,然后通过错误消息读取并搜索。另外,在我的例子中,我的代码编辑器的autocomplete导入了错误的函数。这导致了这种行为。我删除了那个错误的导入,nextjs工作正常。
APIRROR
来自哪里?这不是JS标准的内置错误类型。@juliomalves它来自下一个。js@Ghislain尝试运行:
npm run build
,然后通过错误消息读取并搜索。另外,在我的例子中,我的代码编辑器的autocomplete导入了错误的函数。这导致了这种行为。我删除了错误的导入,nextjs工作正常。