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

Cannot import library in SvelteKit/TypeScript #49

Open
WilliamHua opened this issue Mar 9, 2024 · 2 comments
Open

Cannot import library in SvelteKit/TypeScript #49

WilliamHua opened this issue Mar 9, 2024 · 2 comments

Comments

@WilliamHua
Copy link

WilliamHua commented Mar 9, 2024

I started integrating PromptLayer and got this error.

Error when evaluating SSR module /Users/......+server.ts:

Internal server error: Failed to resolve entry for package "promptlayer". The package may have incorrect main/module/exports specified in its package.json.

This happens when I start importing PromptLayer using this

import { promptlayer } from "promptlayer";

This happens even if the file is just importing PromptLayer. Using SvelteKit + TypeScript

@WilliamHua
Copy link
Author

WilliamHua commented Mar 9, 2024

@marcospolanco
Copy link

marcospolanco commented Nov 6, 2024

I have the same problem. Using TypeScript and Vite.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants