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

Make running examples easier: Build SDK packages during yarn install automatically? #42

Open
JuroUhlar opened this issue Jan 31, 2023 · 0 comments

Comments

@JuroUhlar
Copy link
Contributor

Hi 👋

I wanted to run the example Nuxt app and my expectation was that I can run yarn install either in the root folder or the example app folder, a then just go yarn dev and it would work. Instead, I got this error:

ERROR Failed to resolve entry for package "@fingerprintjs/fingerprintjs-pro-vue-v3". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "@fingerprintjs/fingerprintjs-pro-vue-v3". The package may have incorrect main/module/exports specified in its package.json.

That's because the example package.json refers to the package in the packages folder and assumes it's already built, which it is not.

Would it be possible to adjust the monorepo setup in a way where running yarn install or a different command in the root would install everything needed to run the examples, including building the SDKs? (assuming main inside SDK package.json must keep pointing to the dist folder).

Either way, we should add a short section to the README describing how to run the examples :) Thanks!

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