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

TS can't find the package after install #1

Open
gdbjohnson opened this issue Jun 13, 2024 · 1 comment
Open

TS can't find the package after install #1

gdbjohnson opened this issue Jun 13, 2024 · 1 comment

Comments

@gdbjohnson
Copy link

I just installed the package to give it a try. I'm trying to enforce the exact same criteria, and instead of building it myself, this seems to be what is needed. However, it looks like you're missing a line in your package.json so that the compiler can find it.

Getting:
"Cannot find module 'kysely-access-control' or its corresponding type declarations.ts(2307)"

The package.json file seems to be missing the "main" field in the JSON, which resolves it for me. I'll create a PR for you to review.

@gdbjohnson
Copy link
Author

Looks like I can't push to your repo. If you can pls add the following to your project's package.json, that should fix up the issue I'm having using your project.

"main": "dist/index.js", "types": "dist/index.d.ts",

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

1 participant