-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
官方doc中,作为 npm 包使用的js代码执行报错(NOROUTE) #15151
Comments
Searching for maintainers:
If all routes can not be found, the issue will be closed automatically. Please use |
Searching for maintainers:
If all routes can not be found, the issue will be closed automatically. Please use |
Searching for maintainers:
If all routes can not be found, the issue will be closed automatically. Please use |
NOROUTE 这个错误和路由无关 |
路由地址
完整路由地址
相关文档
https://rsshub-doc.pages.dev/usage.html#bian-xie-ding-yue-yuan
预期是什么?
使用官方示例代码运行
实际发生了什么?
执行报错:
\node_modules\rsshub\lib\pkg.ts:1
import { setConfig } from '@/config';
SyntaxError: Cannot use import statement outside a module
尝试解决:
package.json中添加type:module,并改为import导入
仍旧报错:TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for d:\Test\js\RSS\node_modules\rsshub\lib\pkg.ts
类似的issue:有一个类似的但是他是部署到vercel的时候报错,和安装rsshub包使用并不类似。
部署
RSSHub 演示 (https://rsshub.app)
部署相关信息
Windows:Node.js v20.10.0
额外信息
这不是重复的 issue
The text was updated successfully, but these errors were encountered: