Publishing / Testing local formik-antd fork from another Local Project
See original GitHub issueI 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:
- Created 4 years ago
- Comments:12 (12 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I would recommend to test against master without modular imports + babel plugin.
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.