小编Kir*_*hka的帖子

如何修复“您可能需要适当的加载程序来处理此文件类型,当前没有配置加载程序来处理此文件。”

我使用 next.js。当导出第三方包中的文件index.ts 中的类型时,会发生错误。

Module parse failed: Unexpected token (23:7)
    You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
    > export type { Validate } from './src/nullable'
Run Code Online (Sandbox Code Playgroud)

javascript typescript reactjs next.js

10
推荐指数
2
解决办法
3万
查看次数

标签 统计

javascript ×1

next.js ×1

reactjs ×1

typescript ×1