question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Publishing / Testing local formik-antd fork from another Local Project

See original GitHub issue

I was considering adding some PRs but I like to be able to test local changes in my current project prior to submitting the PR.

I know in package.json you can reference another local file / directory as the source of the node module but I tried it and it doesn’t seem to build well. I get errors like

Uncaught TypeError: this.props.formik.registerField is not a function at FieldInner.componentDidMount

If I use the normal package installed via npm itself, I don’t get these errors.

Maybe I need to publish / build the project first? Not sure.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
jannikbuschkecommented, Jul 15, 2019

I would recommend to test against master without modular imports + babel plugin.

1reaction
jannikbuschkecommented, Apr 6, 2019

It may sound a bit overkill. Especially finding a practical setup is hard and it took me quite some time.

As seen in https://github.com/jannikbuschke/formik-antd-playground this is a powerful setup and it actually is pretty easy to use.

I just published a blogpost about the setup: https://www.jannikbuschke.de/blog/monorepo-with-lerna-react-and-typescript/

You can combine it with git submodules (https://www.jannikbuschke.de/blog/git-submodules/). This would allow you to include formik-antd by its source, so you don’t need to wait for new releases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fork a dependency and use it locally in a project
This is a how to illustrating how to work on a 3rd party package, it assumes you are using yarn as your project's...
Read more >
How to Sync and Update a Forked Repository - Section.io
Fork is a copy of a repository of someone's else project. ... Clone is downloading a copy of the remote repository to local...
Read more >
How to properly fork a local git repository? - Stack Overflow
I want to fork it and use it as the basis of a new project. The new project should never be able to...
Read more >
Forking a repository - Build tools | Mbed OS 6 Documentation
Comparing with a fork. The Revisions panel lets you compare a local repository with a remote one, if they are "related". The term...
Read more >
@0x-lerna-fork/publish - npm
Start using @0x-lerna-fork/publish in your project by running `npm ... Under all other circumstances, this value is derived from a local git ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found