我使用 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)