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

[PRO]: Vercel Production Build Deployment Issue With Pro Packages #3983

Closed
2 tasks done
kevinlu1248 opened this issue Apr 25, 2023 · 3 comments
Closed
2 tasks done

[PRO]: Vercel Production Build Deployment Issue With Pro Packages #3983

kevinlu1248 opened this issue Apr 25, 2023 · 3 comments
Assignees
Labels
Category: Pro The issue or pull request is related to the pro packages of Tiptap. Triage: Open A new issue or pullrequest that requires triage (added by default) Type: Bug The issue or pullrequest is related to a bug

Comments

@kevinlu1248
Copy link

kevinlu1248 commented Apr 25, 2023

Which packages did you experience the bug in?

react, mathematics

What Tiptap version are you using?

2.0.1

What’s the bug you are facing?

I get the following error in the build logs when trying to do a production build of my app on Vercel/Next JS.

error An unexpected error occurred: "https://registry.tiptap.dev/@tiptap-pro%2fextension-unique-id/-/extension-unique-id-2.0.1.tgz: Request failed \"500 Internal Server Error\"".

I have the TIPTAP_PRO_TOKEN environment variable set. I even tried setting the install command to yarn config set "@tiptap-pro:registry" https://registry.tiptap.dev/ && TIPTAP_PRO_TOKEN=XXX yarn install (replacing XXX with my token) and it still didn't work. I'm wondering what I should try next.

What browser are you using?

Chrome

Code example

No response

What did you expect to happen?

Building successfully.

Anything to add? (optional)

It seems like an authentication issue and not a registry issue since otherwise I would've gotten 404 and not 500.

Did you update your dependencies?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖
@kevinlu1248 kevinlu1248 added Category: Pro The issue or pull request is related to the pro packages of Tiptap. Triage: Open A new issue or pullrequest that requires triage (added by default) Type: Bug The issue or pullrequest is related to a bug labels Apr 25, 2023
@kevinlu1248
Copy link
Author

Never mind I fixed it. It's a confusing part on Vercel but the docs are here https://vercel.com/guides/using-private-dependencies-with-vercel. Instead of putting in npmrc as key-value pairs in the env var put it in directly to the NPM_RC key.

@ccreusat
Copy link

ccreusat commented Dec 7, 2023

Hi @kevinlu1248 , I have the same issue with vercel.. I tried to add my npmrc file as following:

// .npmrc
@tiptap-pro:registry=https://registry.tiptap.dev
//registry.tiptap.dev/:_authToken=TIPTAP_PRO_TOKEN

then

vc env add NPM_RC preview < .npmrc

but I still have the 500 error.. Any tip ?

@kevinlu1248
Copy link
Author

Can you try adding this on Vercel directly rather than CLI? Not too sure, I haven't worked on the project in a while @ccreusat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Pro The issue or pull request is related to the pro packages of Tiptap. Triage: Open A new issue or pullrequest that requires triage (added by default) Type: Bug The issue or pullrequest is related to a bug
Projects
None yet
Development

No branches or pull requests

4 participants