-
Notifications
You must be signed in to change notification settings - Fork 91
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
Getting "Cannot find module 'ajv/dist/core'" when trying to build a library #388
Comments
of course I find this solution 15 minutes later: still looks like something that can be improved though. |
I came here to look for the same problem and found a solution immediately. |
I was able to reproduce this with my repo https://github.com/receter/my-component-library if I upgrade to This can also happen if you accidentally have added When using Summary |
What @receter said worked for me. I removed a |
Describe the bug
I'm trying to build my first ts/react library, following this article:
https://dev.to/receter/how-to-create-a-react-component-library-using-vites-library-mode-4lma
when I got to section "Building the types", which suggests installing this library, I get this error when attempting build:
So far I've tried anything I could find online + upgrading my node js version, but nothing has worked.
I've tried to replicate it via StackBlitz for you, but of course it works there -_-
If you like to see the code I have now, here it is, to the letter:
https://stackblitz.com/edit/vitejs-vite-5ph2e3
Thanks in advance!
Reproduction
https://stackblitz.com/edit/vitejs-vite-5ph2e3
Steps to reproduce
I failed to reproduce via StackBlitz, but the code is there exactly as it is on my machine.
System Info
Validations
The text was updated successfully, but these errors were encountered: