You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⨯ ./node_modules/tushan/client/api/auth/createAuthHTTPClient.ts
Module parse failed: Unexpected token (2:12)
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
| import { fetchJSON } from '../http';
> import type { Options } from '../http/request';
| import { defaultAuthStorageKey } from './const';
|
Import trace for requested module:
./node_modules/tushan/client/api/auth/createAuthHTTPClient.ts
./node_modules/tushan/client/api/auth/index.ts
./node_modules/tushan/client/api/index.ts
./node_modules/tushan/client/index.ts
./node_modules/tushan/index.ts
我在nextjs中使用
tushan
包时,遇到了模块解析错误。具体错误信息如下:Environment
tushan
package version: 0.3.10Configuration Files
tsconfig.json
package.json
next.config.mjs
最简复现方法,参见https://github.com/zhanghx0905/nextjs-tushan-demo
希望developer能帮助我解决这个问题。
The text was updated successfully, but these errors were encountered: