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

Question: How to fork and build this package locally to edit and use within the metamask-extension #318

Open
AngusBurton opened this issue Dec 12, 2023 · 3 comments

Comments

@AngusBurton
Copy link

Hello, I'm trying to fork and build this package locally to edit and use as a dependency within the metamask-extension repo. Unfortunately I've failed to do so.

I've tried linking it within the package json using yarn install <filepath> which successfully creates a link to the local module however when running yarn start on the metamask-extension repo it produces an error: TypeError: Tried to access an environmental variable "_nodeLRUCacheForceNoSymbol" that wasn't declared in builds.yml I did try adding the env like it says however it keeps asking for envs to add to builds.yml which ultimately doesn't work.

I've also tried just putting the package directly inside the metamask-extension repo and change the imports to the filepath of the local package. But this caused many dependency issues.

Is there a better way to go about this? If you have any ideas I'd love to know. Thanks.

@AngusBurton AngusBurton changed the title Question: Trying to fork and build this package locally to use within the metamask-extension Question: How to fork and build this package locally to edit and use within the metamask-extension Dec 12, 2023
@Cognacy
Copy link

Cognacy commented Dec 21, 2023

Hi @AngusBurton are you able to resolve this?

@AngusBurton
Copy link
Author

Hi @Cognacy, no I haven't been able to resolve this.

@MajorLift
Copy link

Have you tried listing your fork as a dependency in package.json? https://stackoverflow.com/questions/28728665/how-to-use-private-github-repo-as-npm-dependency

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

3 participants