Skip to content
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

Strange path in package @/xx, therefore import error when start #15565

Closed
1 task done
alTach opened this issue May 12, 2024 · 1 comment
Closed
1 task done

Strange path in package @/xx, therefore import error when start #15565

alTach opened this issue May 12, 2024 · 1 comment
Labels
RSS bug Something isn't working

Comments

@alTach
Copy link

alTach commented May 12, 2024

Routes

NOROUTE

Full routes

NOROUTE

Related documentation

https://docs.rsshub.app/guide/

What is expected?

Expected that app is started without error.

What is actually happening?

`
[2:19:08 PM] Starting compilation in watch mode...

node_modules/rsshub/lib/pkg.ts:1:27 - error TS2307: Cannot find module '@/config' or its corresponding type declarations.

1 import { setConfig } from '@/config';
~~~~~~~~~~

node_modules/rsshub/lib/pkg.ts:15:25 - error TS2307: Cannot find module '@/app' or its corresponding type declarations.

15 app = (await import('@/app')).default;
~~~~~~~

src/app.service.ts:6:8 - error TS1192: Module '"/rss_tes_tapp/node_modules/rsshub/lib/pkg"' has no default export.

6 import RSSHub from 'rsshub';
~~~~~~

[2:19:22 PM] Found 3 errors. Watching for file changes.

`

Deployment information

RSSHub demo (https://rsshub.app)

Deployment information (for self-hosted)

No response

Additional info

"rsshub": "^1.0.0-master.5e8ea80"

I just installed the package and took the code from the example and I get such errors. The library uses a strange path. I believe, the better way for fix issue is update path in library.

This is not a duplicated issue

  • I have searched existing issues to ensure this bug has not already been reported
@alTach alTach added the RSS bug Something isn't working label May 12, 2024
@alTach alTach changed the title import error when start Strange path in package, therefore import error when start May 12, 2024
@alTach alTach changed the title Strange path in package, therefore import error when start Strange path in package @/xx, therefore import error when start May 12, 2024
@TonyRL
Copy link
Collaborator

TonyRL commented May 12, 2024

Duplicate of #14930

@TonyRL TonyRL marked this as a duplicate of #14930 May 12, 2024
@TonyRL TonyRL closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RSS bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants