Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[Question]: What should I do after modifying the content in data-provider/? #2799

Closed
1 task done
Kevin-free opened this issue May 20, 2024 · 0 comments
Closed
1 task done
Labels
question Further information is requested

Comments

@Kevin-free
Copy link

What is your question?

When editing api-endpoints.ts, data-service.ts, src/types.ts, src/react-query/react-query-service.ts in the data-provider/ file After coding, what needs to be done to update the project?

I tried executing npm run build:data-provider, and it took effect, but a strange problem occurred: all
import xxx from 'librechat-data-provider'; are all marked with red prompts (although it does not affect the operation, it looks uncomfortable):

Cannot find module 'librechat-data-provider' or its corresponding type declarations.
 There are types at 'xxx/node_modules/librechat-data-provider/dist/types/index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext ', or 'bundler'.

Don't know what else to do? Or is it a problem with my version?

What’s even stranger is: after I restarted VSCode, all the red prompts disappeared.

Want your help or your practical steps?

More Details

> node --version
v19.8.1
> npm --version
9.5.1

What is the main subject of your question?

Other

Screenshots

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Kevin-free Kevin-free added the question Further information is requested label May 20, 2024
Repository owner locked and limited conversation to collaborators May 20, 2024
@danny-avila danny-avila converted this issue into discussion #2801 May 20, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant