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

Bug when trying to deploy on vercel #14

Closed
caducoder opened this issue Aug 7, 2023 · 3 comments
Closed

Bug when trying to deploy on vercel #14

caducoder opened this issue Aug 7, 2023 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@caducoder
Copy link

Which element(s) are the source of the bug?

Don't known / other

Description

I got this bug in development, but i fixed changing the main file extension to index.js (was index.ts) in package.json at node_modules. On Vercel I don't know how to proceed.
image

Please provide the exception or error you saw

[commonjs--resolver] Failed to resolve entry for package "github-automated-repos". The package may have incorrect main/module/exports specified in its package.json.
error during build:
Error: Failed to resolve entry for package "github-automated-repos". The package may have incorrect main/module/exports specified in its package.json.
    at packageEntryFailure (file:///vercel/path0/node_modules/vite/dist/node/chunks/dep-1513d487.js:34405:11)
    at resolvePackageEntry (file:///vercel/path0/node_modules/vite/dist/node/chunks/dep-1513d487.js:34402:5)
    at tryNodeResolve (file:///vercel/path0/node_modules/vite/dist/node/chunks/dep-1513d487.js:34160:20)
    at Object.resolveId (file:///vercel/path0/node_modules/vite/dist/node/chunks/dep-1513d487.js:33962:28)
    at file:///vercel/path0/node_modules/rollup/dist/es/shared/rollup.js:22694:37
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Error: Command "npm run build" exited with 1

Anything else?

No response

@DIGOARTHUR
Copy link
Owner

DIGOARTHUR commented Aug 7, 2023

@caducoder Are you using NextJS?
My website is hosted on vercel and is working. See the NextJS settings for the package::
Nextjs config

@caducoder
Copy link
Author

The problem was I forget the "/index" at import { useGithubAutomatedRepos, StackIcon, IGithubRepos } from 'github-automated-repos/index';
Thanks for the tip on linkedin @DIGOARTHUR

@DIGOARTHUR
Copy link
Owner

Happy to have it resolved.

Hug and success!

@DIGOARTHUR DIGOARTHUR pinned this issue Aug 7, 2023
DIGOARTHUR added a commit that referenced this issue Aug 7, 2023
@DIGOARTHUR DIGOARTHUR added the documentation Improvements or additions to documentation label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants