模块解析失败:意外的令牌 (1:0) NextJS 13

问题描述 投票:0回答:1

我在编写 NextJS 13 时遇到错误,如下所示:

./node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html 模块解析失败:意外的标记 (1:0) 您可能需要适当的加载程序来处理此文件类型,目前没有配置加载程序来处理此文件。请参阅https://webpack.js.org/concepts#loaders

我使用 next-auth、tailwindcss,这是我的 next.config.js: `/** @type {import('next').NextConfig} */ 常量 nextConfig = {}

module.exports = nextConfig`

有人可以帮我解决吗?

next.js next.js13 next-auth
1个回答
0
投票

这里也一样。可能是在根文件中调用 auth.ts 中的某些函数导致此问题。

© www.soinside.com 2019 - 2024. All rights reserved.