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

Removed yarn as a package manager #380

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chase-west
Copy link

We shouldn't be using two package managers, it can lead to errors such as:

Module not found: Package path ./generated is not exported from package C:\Users\chase\OneDrive\Desktop\opensource\website\node_modules\contentlayer (see exports field in C:\Users\chase\OneDrive\Desktop\opensource\website\node_modules\contentlayer\package.json)
4 | import { useEffect, useState } from 'react'
5 | import ProjectCard from '../../components/ProjectCard'
6 | import { allProjects, allFunds } from 'contentlayer/generated'
7 | import { Project, Fund } from 'contentlayer/generated'
8 |
9 | const AllProjects: NextPage<{ projects: Project[]; funds: Fund[] }> = ({
10 |Import trace for requested module:
11 |./pages/index.tsx

I've removed yarn because installing packages with npm instead resolved this error (and likely prevents future ones).

Changes in README.md:

  • Updated the command to install dependencies from yarn to npm install.
  • Updated the command to run the local development version from yarn dev to npm run dev.

Copy link

vercel bot commented Jan 1, 2025

@chase-west is attempting to deploy a commit to the OpenSats Team on Vercel.

A member of the Team first needs to authorize it.

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

Successfully merging this pull request may close these issues.

1 participant